Skip to content

Instantly share code, notes, and snippets.

@ryanhinton
Created August 17, 2016 06:10
Show Gist options
  • Save ryanhinton/03fa1dbab38ea61835ede54cc7b15da0 to your computer and use it in GitHub Desktop.
Save ryanhinton/03fa1dbab38ea61835ede54cc7b15da0 to your computer and use it in GitHub Desktop.
component accessors=true {
private function initializeDefaultPropertyValues() {
for(local.property in getComponentMetaData('properties').properties) {
variables[local.property.name] = listContains('array,struct', local.property.type) ? deserializeJSON(local.property.default) : local.property.default;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment