Skip to content

Instantly share code, notes, and snippets.

@Luke-23ae
Created August 17, 2010 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Luke-23ae/529990 to your computer and use it in GitHub Desktop.
Save Luke-23ae/529990 to your computer and use it in GitHub Desktop.
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