Bug 1420272 - Rename bame to name in element-style.js. r=mparkms
authorGabriel Luong <gabriel.luong@gmail.com>
Thu, 23 Nov 2017 16:19:03 -0500
changeset 393522 bb905ee2c5221399e9330004cdb617f59179ec55
parent 393521 f342174ef0274b5d4fbb6783beec72fc60603b2e
child 393523 2ad64876cb085ecdd761f5cbc215655a4ea3f577
push id32962
push useraiakab@mozilla.com
push dateFri, 24 Nov 2017 10:01:11 +0000
treeherdermozilla-central@f2e36fbb90fa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmparkms
bugs1420272
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1420272 - Rename bame to name in element-style.js. r=mparkms
devtools/client/inspector/rules/models/element-style.js
--- a/devtools/client/inspector/rules/models/element-style.js
+++ b/devtools/client/inspector/rules/models/element-style.js
@@ -383,30 +383,30 @@ UserProperties.prototype = {
     return value;
   },
 
   /**
    * Set a named property for a given CSSStyleDeclaration.
    *
    * @param {CSSStyleDeclaration} style
    *        The CSSStyleDeclaration against which the property is to be mapped.
-   * @param {String} bame
+   * @param {String} name
    *        The name of the property to set.
    * @param {String} userValue
    *        The value of the property to set.
    */
-  setProperty: function (style, bame, userValue) {
-    let key = this.getKey(style, bame);
+  setProperty: function (style, name, userValue) {
+    let key = this.getKey(style, name);
     let entry = this.map.get(key, null);
 
     if (entry) {
-      entry[bame] = userValue;
+      entry[name] = userValue;
     } else {
       let props = {};
-      props[bame] = userValue;
+      props[name] = userValue;
       this.map.set(key, props);
     }
   },
 
   /**
    * Check whether a named property for a given CSSStyleDeclaration is stored.
    *
    * @param {CSSStyleDeclaration} style