Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Moved all getComputedStyle calls to _ElementUtilities._getComputedStyle
Also added a jscs rule to warn us if we try to call getComputedStyle directly in the future.
- Loading branch information
Showing
with
148 additions
and 98 deletions.
- +3 −1 .jscsrc
- +1 −1 package.json
- +14 −13 src/js/WinJS/Animations.js
- +1 −1 src/js/WinJS/Animations/_TransitionAnimation.js
- +1 −1 src/js/WinJS/Controls/AutoSuggestBox.js
- +2 −2 src/js/WinJS/Controls/CommandingSurface/_CommandingSurface.ts
- +2 −2 src/js/WinJS/Controls/FlipView.js
- +2 −2 src/js/WinJS/Controls/FlipView/_PageManager.js
- +3 −3 src/js/WinJS/Controls/Flyout.js
- +3 −3 src/js/WinJS/Controls/Flyout/_Overlay.js
- +3 −3 src/js/WinJS/Controls/Hub.js
- +2 −2 src/js/WinJS/Controls/ItemContainer.js
- +1 −1 src/js/WinJS/Controls/ListView.js
- +1 −1 src/js/WinJS/Controls/ListView/_BrowseMode.js
- +1 −1 src/js/WinJS/Controls/ListView/_Layouts.js
- +5 −5 src/js/WinJS/Controls/MediaPlayer.js
- +1 −1 src/js/WinJS/Controls/Menu/_Command.js
- +9 −9 src/js/WinJS/Controls/NavBar/_Container.js
- +5 −5 src/js/WinJS/Controls/Pivot/_Pivot.ts
- +10 −10 src/js/WinJS/Controls/Rating.js
- +5 −5 src/js/WinJS/Controls/SemanticZoom.js
- +1 −1 src/js/WinJS/Controls/SplitView/Command.js
- +2 −2 src/js/WinJS/Controls/SplitView/_SplitView.ts
- +1 −1 src/js/WinJS/Controls/ToggleSwitch.js
- +1 −1 src/js/WinJS/Controls/ToolBar/_ToolBar.ts
- +3 −3 src/js/WinJS/Controls/Tooltip.js
- +1 −1 src/js/WinJS/Controls/ViewBox.js
- +5 −5 src/js/WinJS/Controls/_LegacyAppBar/_Layouts.js
- +1 −0 src/js/WinJS/Utilities/_ElementUtilities.d.ts
- +9 −7 src/js/WinJS/Utilities/_ElementUtilities.js
- +1 −1 src/js/WinJS/Utilities/_KeyboardBehavior.js
- +1 −1 src/js/WinJS/Utilities/_TabContainer.js
- +1 −1 src/js/WinJS/XYFocus.ts
- +3 −2 src/js/WinJS/_Accents.ts
- +43 −0 tasks/utilities/disallow-direct-get-computed-style.js
Oops, something went wrong.