Created
August 17, 2010 13:45
-
-
Save Luke-23ae/529990 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var properties = $w('borderBottomColor borderBottomStyle borderBottomWidth borderTopColor borderTopStyle borderTopWidth borderRightColor borderRightStyle borderRightWidth borderLeftColor borderLeftStyle borderLeftWidth fontSize fontFamily fontWeight letterSpacing lineHeight margin marginTop marginRight marginBottom marginLeft paddingTop paddingRight paddingBottom paddingLeft textAlign textIndent width wordSpacing'); | |
for (var i = 0, length = properties.length; i < length; i++) { | |
toStyles[properties[i]] = from.getStyle(properties[i]); | |
} | |
this.setContentStyle(toStyles); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment