pull/948/merge
Rich Harris 8 years ago committed by GitHub
commit 981592201c

@ -16,6 +16,7 @@ export function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
export function destroyDev(detach) {
@ -201,6 +202,7 @@ export function removeFromStore() {
}
export var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,
@ -215,6 +217,7 @@ export var proto = {
};
export var protoDev = {
destroyed: false,
destroy: destroyDev,
get: get,
fire: fire,

@ -49,6 +49,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -179,6 +180,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -25,6 +25,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -155,6 +156,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -25,6 +25,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -155,6 +156,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -45,6 +45,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -175,6 +176,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -37,6 +37,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -167,6 +168,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -41,6 +41,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -171,6 +172,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -45,6 +45,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -175,6 +176,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -57,6 +57,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -187,6 +188,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -37,6 +37,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -167,6 +168,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -41,6 +41,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -171,6 +172,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -41,6 +41,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -171,6 +172,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -41,6 +41,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -171,6 +172,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -41,6 +41,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -171,6 +172,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -41,6 +41,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -171,6 +172,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -41,6 +41,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -171,6 +172,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -45,6 +45,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -175,6 +176,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -43,6 +43,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -173,6 +174,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -60,6 +60,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -190,6 +191,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -53,6 +53,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -183,6 +184,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -39,6 +39,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -169,6 +170,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -25,6 +25,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -155,6 +156,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -25,6 +25,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -155,6 +156,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -49,6 +49,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -179,6 +180,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -45,6 +45,7 @@ function destroy(detach) {
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
this.destroyed = true;
}
function differs(a, b) {
@ -175,6 +176,7 @@ function _unmount() {
}
var proto = {
destroyed: false,
destroy: destroy,
get: get,
fire: fire,

@ -0,0 +1,7 @@
export default {
test(assert, component) {
assert.ok(!component.destroyed);
component.destroy();
assert.ok(component.destroyed);
}
};
Loading…
Cancel
Save