Permalink
Browse files

using appropriate functions- according to what Sebastian has written

  • Loading branch information...
1 parent 946d70a commit 807f555a07c1b253f9d98d6d1b27a302b1e377c7 @farshidbeheshti farshidbeheshti committed Aug 31, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 extension/content/firebug/css/cssPanel.js
View
7 extension/content/firebug/css/cssPanel.js
@@ -54,7 +54,7 @@ var CSSDomplateBase =
getPropertyValue: function(prop)
{
- var limit = Firebug.cssDisplayedPropertyValueLimit;
+ var limit = Options.get("cssDisplayedPropertyValueLimit");
if (limit > 0)
return Str.cropString(prop.value, limit);
return prop.value;
@@ -1264,8 +1264,7 @@ Firebug.CSSStyleSheetPanel.prototype = Obj.extend(Firebug.Panel,
var prop = Dom.getAncestorByClass(target, "cssProp");
var propNameNode = prop.getElementsByClassName("cssPropName").item(0);
var propName = propNameNode.textContent.toLowerCase();
- var text = styleRule.style[propName];
-
+ var text = styleRule.style.getPropertyValue(propName);
var cssValue;
if (propName == "font" || propName == "font-family")
@@ -1802,7 +1801,7 @@ CSSEditor.prototype = domplate(Firebug.InlineEditor.prototype,
var prop = Dom.getAncestorByClass(target, "cssProp");
var propNameNode = prop.getElementsByClassName("cssPropName").item(0);
var propName = propNameNode.textContent.toLowerCase();
- value = styleRule.style[propName];
+ value = styleRule.style.getPropertyValue(propName);
}
return value;
},

0 comments on commit 807f555

Please sign in to comment.