Compare commits
29 Commits
9a76dc2395
...
master
Author | SHA1 | Date | |
---|---|---|---|
cd4c5b43d7 | |||
ed49ad1392 | |||
812f8352f5 | |||
939d1ec83a | |||
9040bb8d45 | |||
82834320f6 | |||
4e0bb96747 | |||
23f8fa5b72 | |||
7f2b6465c2 | |||
2d41cb26a0 | |||
3eadebec0c | |||
f1b1ae5c13 | |||
def9a0c837 | |||
7c8ce52537 | |||
ab7209f5bf | |||
7e1e2b96ff | |||
a584eb68a7 | |||
f4e314c7be | |||
645af63c30 | |||
d080d8e175 | |||
f531a518b9 | |||
841d03d2c3 | |||
e4602b710d | |||
63ed3a42f9 | |||
7905758894 | |||
08a526ad4a | |||
aaa593e846 | |||
8670aca627 | |||
1ea51c1451 |
@ -295,6 +295,11 @@ class IgniteElement extends HTMLElement {
|
||||
//Leave the rendering context.
|
||||
IgniteRendering.leave();
|
||||
|
||||
//Invoke the after render function, ensure we are not in a rendering context.
|
||||
IgniteRendering.push();
|
||||
this.afterRender();
|
||||
IgniteRendering.pop();
|
||||
|
||||
//Let the rendering context know this element is ready.
|
||||
IgniteRendering.ready(this.readyCallback);
|
||||
}
|
||||
@ -372,6 +377,14 @@ class IgniteElement extends HTMLElement {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Called right after this element is rendered.
|
||||
* Note: It's not guaranteed this element is connected to the DOM yet, but it will at least be fully initialized.
|
||||
*/
|
||||
afterRender() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when this ignite element is being initialized. When this is called
|
||||
* the element has not been created. This is good for login checking code or special setup code.
|
||||
|
@ -107,17 +107,6 @@ class IgniteProperty {
|
||||
//Get the old value
|
||||
var old = this._value;
|
||||
|
||||
//Based on the old value, see if we need to convert the new value to match the original type.
|
||||
if (typeof old === typeof true) {
|
||||
val = val != null && val != undefined ? val.toString().toLowerCase().trim() : val;
|
||||
val = val == "true" || val == "1" || val == "yes" || val == "t" || val == "y";
|
||||
} else if (typeof old === typeof 0) {
|
||||
val = Number(val != null && val != undefined ? val.toString().trim() : "0");
|
||||
val = isNaN(val) ? 0 : val;
|
||||
} else if (typeof old === typeof "") {
|
||||
val = val != null && val != undefined ? val.toString() : null;
|
||||
}
|
||||
|
||||
//Set the new value
|
||||
this._value = val;
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user