build(npm): update to typescript@1.7.3 + fix broccoli-typescript + fix src
This commit is contained in:
@ -181,7 +181,7 @@ export class SelectorMatcher {
|
||||
*/
|
||||
private _addSelectable(cssSelector: CssSelector, callbackCtxt: any,
|
||||
listContext: SelectorListContext) {
|
||||
var matcher = this;
|
||||
var matcher: SelectorMatcher = this;
|
||||
var element = cssSelector.element;
|
||||
var classNames = cssSelector.classNames;
|
||||
var attrs = cssSelector.attrs;
|
||||
|
@ -932,7 +932,7 @@ export class Injector {
|
||||
/** @internal */
|
||||
_getByKeyHost(key: Key, optional: boolean, providerVisibility: Visibility,
|
||||
lowerBoundVisibility: Object): any {
|
||||
var inj = this;
|
||||
var inj: Injector = this;
|
||||
|
||||
if (lowerBoundVisibility instanceof SkipSelfMetadata) {
|
||||
if (inj._isHost) {
|
||||
@ -965,7 +965,7 @@ export class Injector {
|
||||
/** @internal */
|
||||
_getByKeyDefault(key: Key, optional: boolean, providerVisibility: Visibility,
|
||||
lowerBoundVisibility: Object): any {
|
||||
var inj = this;
|
||||
var inj: Injector = this;
|
||||
|
||||
if (lowerBoundVisibility instanceof SkipSelfMetadata) {
|
||||
providerVisibility = inj._isHost ? Visibility.PublicAndPrivate : Visibility.Public;
|
||||
|
@ -571,7 +571,7 @@ export class ElementInjector extends TreeNode<ElementInjector> implements Depend
|
||||
ngAfterContentChecked(): void { this._queryStrategy.updateContentQueries(); }
|
||||
|
||||
traverseAndSetQueriesAsDirty(): void {
|
||||
var inj = this;
|
||||
var inj: ElementInjector = this;
|
||||
while (isPresent(inj)) {
|
||||
inj._setQueriesAsDirty();
|
||||
inj = inj.parent;
|
||||
|
@ -8,10 +8,10 @@ export var document = window.document;
|
||||
export var location = window.location;
|
||||
export var gc = window['gc'] ? () => window['gc']() : () => null;
|
||||
export var performance = window['performance'] ? window['performance'] : null;
|
||||
export const Event = Event;
|
||||
export const MouseEvent = MouseEvent;
|
||||
export const KeyboardEvent = KeyboardEvent;
|
||||
export const EventTarget = EventTarget;
|
||||
export const History = History;
|
||||
export const Location = Location;
|
||||
export const EventListener = EventListener;
|
||||
export const Event = window['Event'];
|
||||
export const MouseEvent = window['MouseEvent'];
|
||||
export const KeyboardEvent = window['KeyboardEvent'];
|
||||
export const EventTarget = window['EventTarget'];
|
||||
export const History = window['History'];
|
||||
export const Location = window['Location'];
|
||||
export const EventListener = window['EventListener'];
|
||||
|
@ -116,7 +116,7 @@ export class Router {
|
||||
* otherwise `false`.
|
||||
*/
|
||||
isRouteActive(instruction: Instruction): boolean {
|
||||
var router = this;
|
||||
var router: Router = this;
|
||||
while (isPresent(router.parent) && isPresent(instruction.child)) {
|
||||
router = router.parent;
|
||||
instruction = instruction.child;
|
||||
@ -382,7 +382,7 @@ export class Router {
|
||||
|
||||
private _getAncestorInstructions(): Instruction[] {
|
||||
var ancestorComponents = [];
|
||||
var ancestorRouter = this;
|
||||
var ancestorRouter: Router = this;
|
||||
while (isPresent(ancestorRouter.parent) &&
|
||||
isPresent(ancestorRouter.parent._currentInstruction)) {
|
||||
ancestorRouter = ancestorRouter.parent;
|
||||
|
Reference in New Issue
Block a user