Skip to content

Commit

Permalink
merge in Contro.getComputedStyleValue from jdachtera
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed May 18, 2012
1 parent 7b39b11 commit 42e5f55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/dom/Control.js
Expand Up @@ -303,6 +303,12 @@ enyo.kind({
enyo.Control.cssTextToDomStyles(inCssText, this.domStyles);
this.domStylesChanged();
},
getComputedStyleValue: function(inStyle, inDefault) {
if (this.hasNode()) {
return enyo.dom.getComputedStyleValue(this.node, inStyle);
}
return inDefault;
},
domStylesChanged: function() {
this.domCssText = enyo.Control.domStylesToCssText(this.domStyles);
this.invalidateTags();
Expand Down

0 comments on commit 42e5f55

Please sign in to comment.