mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Remove code from previous commit again.
This commit is contained in:
parent
d89d7f1ef7
commit
36846d6e38
1 changed files with 0 additions and 6 deletions
|
@ -33,9 +33,6 @@ var Callback = {
|
||||||
// call install if defined.
|
// call install if defined.
|
||||||
if (entry.install && handlers.length == 1)
|
if (entry.install && handlers.length == 1)
|
||||||
entry.install.call(this);
|
entry.install.call(this);
|
||||||
// If the event entry provide an attach callback, call it now
|
|
||||||
if (entry.attach)
|
|
||||||
entry.attach.call(this, type, func);
|
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
@ -51,9 +48,6 @@ var Callback = {
|
||||||
handlers = this._handlers && this._handlers[type],
|
handlers = this._handlers && this._handlers[type],
|
||||||
index;
|
index;
|
||||||
if (entry && handlers) {
|
if (entry && handlers) {
|
||||||
// If the event entry provide a detach callback, call it now
|
|
||||||
if (entry.detach)
|
|
||||||
entry.detach.call(this, type, func);
|
|
||||||
// See if this is the last handler that we're detaching (or if we
|
// See if this is the last handler that we're detaching (or if we
|
||||||
// are detaching all handlers), and call uninstall if defined.
|
// are detaching all handlers), and call uninstall if defined.
|
||||||
if (!func || (index = handlers.indexOf(func)) != -1
|
if (!func || (index = handlers.indexOf(func)) != -1
|
||||||
|
|
Loading…
Reference in a new issue