refactor(OutputAst): BuiltinMethod.bind renamed to Bind (#10739)

This commit is contained in:
Victor Berchet
2016-08-14 07:04:37 -10:00
committed by vikerman
parent 7f6685e451
commit e9479b30e8
9 changed files with 11 additions and 11 deletions

View File

@ -97,7 +97,7 @@ export class CompileEventListener {
var listenExpr: any /** TODO #9100 */;
var eventListener = o.THIS_EXPR.callMethod(
'eventHandler',
[o.THIS_EXPR.prop(this._methodName).callMethod(o.BuiltinMethod.bind, [o.THIS_EXPR])]);
[o.THIS_EXPR.prop(this._methodName).callMethod(o.BuiltinMethod.Bind, [o.THIS_EXPR])]);
if (isPresent(this.eventTarget)) {
listenExpr = ViewProperties.renderer.callMethod(
'listenGlobal', [o.literal(this.eventTarget), o.literal(this.eventName), eventListener]);
@ -117,7 +117,7 @@ export class CompileEventListener {
this.compileElement.view.subscriptions.push(subscription);
var eventListener = o.THIS_EXPR.callMethod(
'eventHandler',
[o.THIS_EXPR.prop(this._methodName).callMethod(o.BuiltinMethod.bind, [o.THIS_EXPR])]);
[o.THIS_EXPR.prop(this._methodName).callMethod(o.BuiltinMethod.Bind, [o.THIS_EXPR])]);
this.compileElement.view.createMethod.addStmt(
subscription
.set(directiveInstance.prop(observablePropName)