diff --git a/src/core/controller/controller.broadcast.js b/src/core/controller/controller.broadcast.js index d424d0a68..71d7330c7 100644 --- a/src/core/controller/controller.broadcast.js +++ b/src/core/controller/controller.broadcast.js @@ -30,7 +30,9 @@ BI.BroadcastController = BI.inherit(BI.Controller, { remove: function (name, fn) { var self = this; if (fn) { - BI.remove(this._broadcasts[name], fn); + BI.remove(this._broadcasts[name], function (index, cb) { + return fn === cb; + }); if (this._broadcasts[name].length === 0) { delete this._broadcasts[name]; }