mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-24 06:17:55 -05:00
Merge pull request #717 from JustinDrake/patch-1
Making unbind and trigger more compatible with each other
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
unbind : function(ev, callback) {
|
||||
var calls, node, prev;
|
||||
if (!ev) {
|
||||
this._callbacks = {};
|
||||
this._callbacks = null;
|
||||
} else if (calls = this._callbacks) {
|
||||
if (!callback) {
|
||||
calls[ev] = {};
|
||||
|
||||
Reference in New Issue
Block a user