From 6ad5fa0d9d48cbaef033fbd45043855cb5f73d18 Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Thu, 14 May 2015 12:36:16 -0700 Subject: [PATCH] Update view_ref.js Add return types. --- modules/angular2/src/core/compiler/view_ref.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/angular2/src/core/compiler/view_ref.js b/modules/angular2/src/core/compiler/view_ref.js index 9aaa34d7bf..420526447a 100644 --- a/modules/angular2/src/core/compiler/view_ref.js +++ b/modules/angular2/src/core/compiler/view_ref.js @@ -3,12 +3,12 @@ import * as viewModule from './view'; import {RenderViewRef} from 'angular2/src/render/api'; // This is a workaround for privacy in Dart as we don't have library parts -export function internalView(viewRef:ViewRef) { +export function internalView(viewRef:ViewRef):viewModule.AppView { return viewRef._view; } // This is a workaround for privacy in Dart as we don't have library parts -export function internalProtoView(protoViewRef:ProtoViewRef) { +export function internalProtoView(protoViewRef:ProtoViewRef):viewModule.AppProtoView { return isPresent(protoViewRef) ? protoViewRef._protoView : null; } @@ -26,7 +26,7 @@ export class ViewRef { return this._view.render; } - setLocal(contextName: string, value:any) { + setLocal(contextName:string, value:any):void { this._view.setLocal(contextName, value); } }