本文整理匯總了TypeScript中@project/observer/src/exports.expression_unbind函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript expression_unbind函數的具體用法?TypeScript expression_unbind怎麽用?TypeScript expression_unbind使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了expression_unbind函數的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: function
dispose: function(){
expression_unbind(
this.expr,
this.model,
this.controller,
this.binder
);
this.controller = null;
this.model = null;
this.ctx = null;
var switch_ = this.Switch,
key,
els, i, imax
;
for(key in switch_) {
els = switch_[key];
if (els == null)
continue;
imax = els.length;
i = -1;
while ( ++i < imax ){
if (els[i].parentNode != null)
els[i].parentNode.removeChild(els[i]);
}
}
}
示例2: function
dispose: function(){
var switch_ = this.Switch,
imax = switch_.length,
i = -1,
x, expr;
while( ++i < imax ){
x = switch_[i];
expr = x.node.expression;
if (expr) {
expression_unbind(
expr,
this.model,
this.controller,
this.binder
);
}
x.node = null;
x.elements = null;
}
this.controller = null;
this.model = null;
this.ctx = null;
}
示例3: function
dispose: function(){
expression_unbind(
this.expr,
this.model,
this.parent,
this.binder
);
this.parent = null;
this.model = null;
this.ctx = null;
}
示例4: function
dispose: function(){
expression_unbind(
this.expr || this.expression, this.model, this.parent, this.binder
);
}
示例5: function
Component.attach(ctr, 'dispose', function(){
expression_unbind(expr, model, ctr, binder);
});
示例6: unsubscribe
unsubscribe(cb: Function) {
super.unsubscribe(cb);
if (this.cbs.length === 0) {
expression_unbind(this.astNode, this.model, this.ctr, this.tick);
}
}