X Tutup
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/angular2/src/compiler/selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions modules/angular2/src/core/di/injector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/angular2/src/core/linker/element_injector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
14 changes: 7 additions & 7 deletions modules/angular2/src/facade/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
4 changes: 2 additions & 2 deletions modules/angular2/src/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Loading
X Tutup