Remove data setting from render function in chanlist
authorCory Chaplin <cory.chaplin@laposte.net>
Thu, 27 Mar 2014 16:20:42 +0000 (17:20 +0100)
committerCory Chaplin <cory.chaplin@laposte.net>
Thu, 27 Mar 2014 16:20:42 +0000 (17:20 +0100)
client/src/applets/chanlist.js

index 9c9cccb71d67c247af634f7e1205a4ca38346586..9135712b392602a11fcae11529210e4dfb959268 100644 (file)
@@ -33,8 +33,6 @@
                 that = this,\r
                 i;\r
             \r
-            this.sorting_channels = false;\r
-            \r
             this.channels = this.sortChannels(this.channels, this.order);\r
 \r
             // Create the sort icon container and clean previous any previous ones\r
         addChannel: function (channels) {\r
             var that = this;\r
 \r
-            // If we're sorting channels, dont rebuild the channel list\r
-            if(this.view.sorting_channels) return;\r
-\r
             if (!_.isArray(channels)) {\r
                 channels = [channels];\r
             }\r