-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide or don't minify extra internal properties on binding context
It is possible for properties such as `_subscribable` to be created on a binding context, which, after minification, could be renamed to any arbitrary character. In most cases this is not an issue, except when a global variable with the same name exists, however rare the case may be. This causes the global variable to be shadowed in all bindings, which is especially problematic in the case of, say, `$`, which breaks jquery. To fix this, either hide such properties with a Symbol, or simply don't minify them so that the name is constant and predictable. Fixes #2294
- Loading branch information
1 parent
e57500a
commit f5baa12
Showing
3 changed files
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters