WebInspector: Uncaught Exception: TypeError: this._delegate.completionControllerCSSFu...
authorwebkit@devinrousso.com <webkit@devinrousso.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Sep 2017 23:04:05 +0000 (23:04 +0000)
committerwebkit@devinrousso.com <webkit@devinrousso.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Sep 2017 23:04:05 +0000 (23:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=177619

Reviewed by Joseph Pecoraro.

* UserInterface/Controllers/CodeMirrorCompletionController.js:
(WI.CodeMirrorCompletionController.prototype._generateCSSCompletions):
Remove accidental `typeof` keyword.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@222636 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js

index 24a447d..ba37262 100644 (file)
@@ -1,3 +1,14 @@
+2017-09-28  Devin Rousso  <webkit@devinrousso.com>
+
+        WebInspector: Uncaught Exception: TypeError: this._delegate.completionControllerCSSFunctionValuesNeeded is not a function.
+        https://bugs.webkit.org/show_bug.cgi?id=177619
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Controllers/CodeMirrorCompletionController.js:
+        (WI.CodeMirrorCompletionController.prototype._generateCSSCompletions):
+        Remove accidental `typeof` keyword.
+
 2017-09-28  Joseph Pecoraro  <pecoraro@apple.com>
 
         Web Inspector: Remove Error icon in error message for resources it looks poor
index 829bb99..0407055 100644 (file)
@@ -585,7 +585,7 @@ WI.CodeMirrorCompletionController = class CodeMirrorCompletionController extends
 
             let functionCompletions = WI.CSSKeywordCompletions.forFunction(functionName).startsWith(this._prefix);
 
-            if (this._delegate && typeof this._delegate.completionControllerCSSFunctionValuesNeeded)
+            if (this._delegate && this._delegate.completionControllerCSSFunctionValuesNeeded)
                 functionCompletions = this._delegate.completionControllerCSSFunctionValuesNeeded(this, functionName, functionCompletions);
 
             return functionCompletions;