diff --git a/src/core/js/drawer.js b/src/core/js/drawer.js index e050fe023..8baf67346 100644 --- a/src/core/js/drawer.js +++ b/src/core/js/drawer.js @@ -3,13 +3,9 @@ define([ 'core/js/views/drawerView' ], function(Adapt, DrawerView) { - var DrawerCollection = new Backbone.Collection(); + var DrawerCollection = new Backbone.Collection(null, { comparator: 'drawerOrder' }); var Drawer = {}; - DrawerCollection.comparator = function (item) { - return item.get('drawerOrder'); - }; - Drawer.addItem = function(drawerObject, eventCallback) { drawerObject.eventCallback = eventCallback; DrawerCollection.add(drawerObject);