You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 25, 2021. It is now read-only.
Augury version (required): 1.4.0
Angular version (required): 4.0.0
Date: 3/29/2017
OS: Mac
Description of issue:
Augury has this code in backend.ts:
const selectedComponentPropertyKey = '$a';
const noSelectedComponentWarningText = 'There is no component selected.';
Object.defineProperty(window, selectedComponentPropertyKey,
{value: noSelectedComponentWarningText});
But that can easily override a $a property/function used by the application. This is especially likely when using Closure Compiler since it will frequently rename a function to $a, and sometimes that ends up being a function on window. I work at Google where I ran into this.
Steps to reproduce:
Define window.$a to be a function that is called at runtime by the main application
Load the page with Augury installed
Get error
The text was updated successfully, but these errors were encountered:
Augury version (required): 1.4.0
Angular version (required): 4.0.0
Date: 3/29/2017
OS: Mac
Description of issue:
Augury has this code in backend.ts:
But that can easily override a $a property/function used by the application. This is especially likely when using Closure Compiler since it will frequently rename a function to $a, and sometimes that ends up being a function on window. I work at Google where I ran into this.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: