Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1499)

Unified Diff: Source/devtools/front_end/ScriptFormatterEditorAction.js

Issue 182113004: DevTools: Get rid of Element.prototype.enableStyleClass (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/PlatformFontsSidebarPane.js ('k') | Source/devtools/front_end/SearchableView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ScriptFormatterEditorAction.js
diff --git a/Source/devtools/front_end/ScriptFormatterEditorAction.js b/Source/devtools/front_end/ScriptFormatterEditorAction.js
index 5afaacce87c1a208dba6135963f480a22a070846..f55391f5876b0a1a802166215c525b979a5d63d3 100644
--- a/Source/devtools/front_end/ScriptFormatterEditorAction.js
+++ b/Source/devtools/front_end/ScriptFormatterEditorAction.js
@@ -289,7 +289,7 @@ WebInspector.ScriptFormatterEditorAction.prototype = {
*/
_updateButton: function(uiSourceCode)
{
- this._button.element.enableStyleClass("hidden", !this._isFormatableScript(uiSourceCode));
+ this._button.element.classList.toggle("hidden", !this._isFormatableScript(uiSourceCode));
},
/**
« no previous file with comments | « Source/devtools/front_end/PlatformFontsSidebarPane.js ('k') | Source/devtools/front_end/SearchableView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698