Skip to content

Instantly share code, notes, and snippets.

@Glidias
Created August 20, 2018 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Glidias/2cbd4830566e07c7d5ba829d73d210ef to your computer and use it in GitHub Desktop.
Save Glidias/2cbd4830566e07c7d5ba829d73d210ef to your computer and use it in GitHub Desktop.
fiddling. Doesnt work. Just some ideas tossing about...
_callComponentMethod: function (name, dt) {
var wasLooping = this._beginLooping();
var nextN;
var lastN = null;
for (var n = this.compNodeList; n!=null; n=nextN) {
nextN = n.next;
var c = n.c;
if (c._destroyed || !c.entity.enabled || !c.enabled) {
if (lastN) {
lastN.next = nextN;
n.prev = lastN;
} else {
this.compNodeList = nextN;
n.prev = null;
}
n.next = null;
continue;
}
n.prev = lastN;
lastN = n;
c[name](dt);
}
this._endLooping(wasLooping);
}
// When attempting to re-activate/enable component from list:
if (n.prev !== null) {
n.next = n.prev.next;
n.prev.next = n;
}
else {
n.next = compNodeList;
compNodeList = n;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment