update snapshot tests

pull/1348/head
Rich Harris 6 years ago
parent 2f86bd339d
commit df4e3678dc

@ -294,7 +294,7 @@ export default function dom(
${props.map(prop => deindent` ${props.map(prop => deindent`
get ${prop}() { get ${prop}() {
return this.get('${prop}'); return this.get().${prop};
} }
set ${prop}(value) { set ${prop}(value) {

@ -65,8 +65,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -57,8 +57,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -57,8 +57,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -53,8 +53,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -53,8 +53,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -65,8 +65,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -83,8 +83,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -83,8 +83,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -83,8 +83,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -53,8 +53,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -80,8 +80,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);
@ -93,17 +91,6 @@ function on(eventName, handler) {
}; };
} }
function onDev(eventName, handler) {
if (eventName === 'teardown') {
console.warn(
"Use component.on('destroy', ...) instead of component.on('teardown', ...) which has been deprecated and will be unsupported in Svelte 2"
);
return this.on('destroy', handler);
}
return on.call(this, eventName, handler);
}
function set(newState) { function set(newState) {
this._set(assign({}, newState)); this._set(assign({}, newState));
if (this.root._lock) return; if (this.root._lock) return;
@ -162,7 +149,7 @@ var protoDev = {
destroy: destroyDev, destroy: destroyDev,
get, get,
fire, fire,
on: onDev, on,
set: setDev, set: setDev,
_recompute: noop, _recompute: noop,
_set, _set,

@ -80,8 +80,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);
@ -93,17 +91,6 @@ function on(eventName, handler) {
}; };
} }
function onDev(eventName, handler) {
if (eventName === 'teardown') {
console.warn(
"Use component.on('destroy', ...) instead of component.on('teardown', ...) which has been deprecated and will be unsupported in Svelte 2"
);
return this.on('destroy', handler);
}
return on.call(this, eventName, handler);
}
function set(newState) { function set(newState) {
this._set(assign({}, newState)); this._set(assign({}, newState));
if (this.root._lock) return; if (this.root._lock) return;
@ -162,7 +149,7 @@ var protoDev = {
destroy: destroyDev, destroy: destroyDev,
get, get,
fire, fire,
on: onDev, on,
set: setDev, set: setDev,
_recompute: noop, _recompute: noop,
_set, _set,

@ -80,8 +80,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);
@ -93,17 +91,6 @@ function on(eventName, handler) {
}; };
} }
function onDev(eventName, handler) {
if (eventName === 'teardown') {
console.warn(
"Use component.on('destroy', ...) instead of component.on('teardown', ...) which has been deprecated and will be unsupported in Svelte 2"
);
return this.on('destroy', handler);
}
return on.call(this, eventName, handler);
}
function set(newState) { function set(newState) {
this._set(assign({}, newState)); this._set(assign({}, newState));
if (this.root._lock) return; if (this.root._lock) return;
@ -162,7 +149,7 @@ var protoDev = {
destroy: destroyDev, destroy: destroyDev,
get, get,
fire, fire,
on: onDev, on,
set: setDev, set: setDev,
_recompute: noop, _recompute: noop,
_set, _set,

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -85,8 +85,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -85,8 +85,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -85,8 +85,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -65,8 +65,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);
@ -173,7 +171,7 @@ function create_main_fragment(component, state) {
}, },
d: function destroy$$1() { d: function destroy$$1() {
foo_handler[foo_handler.destroy ? 'destroy' : 'teardown'](); foo_handler.destroy();
} }
}; };
} }

@ -39,7 +39,7 @@ function create_main_fragment(component, state) {
}, },
d: function destroy() { d: function destroy() {
foo_handler[foo_handler.destroy ? 'destroy' : 'teardown'](); foo_handler.destroy();
} }
}; };
} }

@ -65,8 +65,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -65,8 +65,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -65,8 +65,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -69,8 +69,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -77,8 +77,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -87,8 +87,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -71,8 +71,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -88,8 +88,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -81,8 +81,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -67,8 +67,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -53,8 +53,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -53,8 +53,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -53,8 +53,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -53,8 +53,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -53,8 +53,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -77,8 +77,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -77,8 +77,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -77,8 +77,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

@ -73,8 +73,6 @@ function init(component, options) {
} }
function on(eventName, handler) { function on(eventName, handler) {
if (eventName === 'teardown') return this.on('destroy', handler);
var handlers = this._handlers[eventName] || (this._handlers[eventName] = []); var handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler); handlers.push(handler);

Loading…
Cancel
Save