bunti/src/main/webapp/resources/js/models.js

12 lines
322 B
JavaScript
Raw Normal View History

(function($) {
window.Room = Backbone.Model.extend({});
window.Rooms = Backbone.Collection.extend({
model: Room,
url: '/resources/json/rooms.json'
});
2012-03-23 02:13:44 +00:00
window.Device = Backbone.Model.extend({});
2012-05-10 15:05:04 +00:00
window.RoomDevices = Backbone.Collection.extend({
model: Device
2012-03-23 02:13:44 +00:00
});
})(jQuery);