Remove code from previous commit again.

This commit is contained in:
Jürg Lehni 2011-11-12 19:52:36 +01:00
parent d89d7f1ef7
commit 36846d6e38

View file

@ -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