Bug 1318019 - Add missing () to call isDisplayGrid function when a property value editor closes. r=me, a=jcristau
authorGabriel Luong <gabriel.luong@gmail.com>
Thu, 17 Nov 2016 13:15:18 +0900
changeset 352592 5d7e295bdc1fa4cfae06d8d50f6f1a87d14266a4
parent 352591 7ff711bec0281ba29c0736730a9a6e8d86f0e7b5
child 352593 2006a7b09d2a5c6888a2d236e24e8dbea5334123
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, jcristau
bugs1318019
milestone52.0a2
Bug 1318019 - Add missing () to call isDisplayGrid function when a property value editor closes. r=me, a=jcristau
devtools/client/inspector/rules/views/text-property-editor.js
--- a/devtools/client/inspector/rules/views/text-property-editor.js
+++ b/devtools/client/inspector/rules/views/text-property-editor.js
@@ -730,17 +730,17 @@ TextPropertyEditor.prototype = {
     // its original value and enabled or disabled state
     if (value.trim() && isValueUnchanged) {
       this.ruleEditor.rule.previewPropertyValue(this.prop, val.value,
                                                 val.priority);
       this.rule.setPropertyEnabled(this.prop, this.prop.enabled);
       return;
     }
 
-    if (this.isDisplayGrid) {
+    if (this.isDisplayGrid()) {
       this.ruleView.highlighters._hideGridHighlighter();
     }
 
     // First, set this property value (common case, only modified a property)
     this.prop.setValue(val.value, val.priority);
 
     if (!this.prop.enabled) {
       this.prop.setEnabled(true);