Use promise version of PluginInterface on the client
[KiwiIRC.git] / client / src / views / controlbox.js
index 4fbedf815e851d63f7cc0e1f8da1eb43cc136db9..29792e70cba32c8333f2df6ab105223c1c9dfbfc 100644 (file)
@@ -284,7 +284,7 @@ _kiwi.view.ControlBox = Backbone.View.extend({
         events_data = {command: command, params: params};
 
         _kiwi.global.events.emit('command', events_data)
-        .done(function() {
+        .then(function() {
             // Trigger the command events
             that.trigger('command', {command: events_data.command, params: events_data.params});
             that.trigger('command:' + events_data.command, {command: events_data.command, params: events_data.params});