Ignite properties now patch lists to capture push/pop events so that when used in a list template the whole list doesn't have to be rerendered. Also cleaned up some code and moved things around.
This commit is contained in:
@@ -38,9 +38,8 @@ class IgniteElement extends HTMLElement {
|
||||
|
||||
var keys = Object.keys(props);
|
||||
for (var i = 0; i < keys.length; i++) {
|
||||
var prop = new IgniteProperty();
|
||||
let prop = new IgniteProperty(props[keys[i]]);
|
||||
this[`_${keys[i]}`] = prop;
|
||||
prop._value = props[keys[i]];
|
||||
|
||||
((propName) => {
|
||||
Object.defineProperty(this, propName, {
|
||||
@@ -56,8 +55,6 @@ class IgniteElement extends HTMLElement {
|
||||
this[`_${propName}`].value = value;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
})(keys[i]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user