本文整理汇总了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);
}
}