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/facade/lang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export function setValueOnPath(global: any, path: string, value: any) {
var obj: any = global;
while (parts.length > 1) {
var name = parts.shift();
if (obj.hasOwnProperty(name)) {
if (obj.hasOwnProperty(name) && isPresent(obj[name])) {
obj = obj[name];
} else {
obj = obj[name] = {};
Expand Down
2 changes: 1 addition & 1 deletion modules/angular2/src/platform/browser/tools/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export function enableDebugTools(ref: ComponentRef): void {
* Disables Angular 2 tools.
*/
export function disableDebugTools(): void {
context.ng = undefined;
delete context.ng;
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ export const ELEMENT_PROBE_PROVIDERS: any[] = CONST_EXPR([
CONST_EXPR(new Provider(AppViewListener, {useExisting: DebugElementViewListener})),
]);

export const ELEMENT_PROBE_BINDINGS = ELEMENT_PROBE_PROVIDERS;
export const ELEMENT_PROBE_BINDINGS = ELEMENT_PROBE_PROVIDERS;
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function main() {

async.done();
});
}), 10000);
}), 1000);
}
});
}