diff --git a/ignite-element.js b/ignite-element.js index 1ec726d..8f905e6 100644 --- a/ignite-element.js +++ b/ignite-element.js @@ -167,6 +167,13 @@ class IgniteElement extends HTMLElement { return ret; } + /** + * Sets all the property values on this element. + */ + setProperties(props) { + Object.keys(props).forEach(name => this[name] = props[name]); + } + /** * Creates the getters/setters for properties in this * ignite element and initializes everything.