Permalink
Browse files

fixes the yellow highlighting for the property name

  • Loading branch information...
1 parent 771d1c1 commit 4404b4740314aa7fd4a096532dac1f63f9723c12 @farshidbeheshti farshidbeheshti committed Sep 20, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 extension/content/firebug/css/cssPanel.js
@@ -1743,7 +1743,6 @@ CSSEditor.prototype = domplate(Firebug.InlineEditor.prototype,
parsedValue.priority);
propName = value;
}
-
Events.dispatch(CSSModule.fbListeners, "onCSSPropertyNameChanged", [rule, value,
previousValue, baseText]);
}
@@ -1784,12 +1783,12 @@ CSSEditor.prototype = domplate(Firebug.InlineEditor.prototype,
if (value)
{
- var saveSuccess = !!rule.style.getPropertyValue(propName || value);
- if(!saveSuccess && !propName)
+ var saveSuccess = !!rule.style.getPropertyValue(propName);
+ if (!saveSuccess && Css.hasClass(target, "cssPropName"))
{
propName = value.replace(/-./g, function(match)
{
- return match[1].toUpperCase()
+ return match[1].toUpperCase();
});
if (propName in rule.style || propName == "float")

0 comments on commit 4404b47

Please sign in to comment.