mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -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.
|
||||
if (entry.install && handlers.length == 1)
|
||||
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;
|
||||
},
|
||||
|
@ -51,9 +48,6 @@ var Callback = {
|
|||
handlers = this._handlers && this._handlers[type],
|
||||
index;
|
||||
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
|
||||
// are detaching all handlers), and call uninstall if defined.
|
||||
if (!func || (index = handlers.indexOf(func)) != -1
|
||||
|
|
Loading…
Reference in a new issue