Cleaned up code, added support for lists, classes, attributes, and more. Added more test code, everything appears to be working. More cleanup and testing is needed.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
class IgniteProperty {
|
||||
constructor() {
|
||||
this.onPropertyChange = [];
|
||||
this._value = null;
|
||||
}
|
||||
|
||||
get value() {
|
||||
return this._value;
|
||||
}
|
||||
|
||||
set value(val) {
|
||||
var old = this._value;
|
||||
this._value = val;
|
||||
|
||||
for (var i = 0; i < this.onPropertyChange.length; i++) {
|
||||
this.onPropertyChange[i](old, val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class IgniteAttribute {
|
||||
|
||||
}
|
||||
|
||||
export {
|
||||
IgniteProperty,
|
||||
IgniteAttribute
|
||||
};
|
||||
Reference in New Issue
Block a user