Created
August 20, 2018 02:36
-
-
Save Glidias/2cbd4830566e07c7d5ba829d73d210ef to your computer and use it in GitHub Desktop.
fiddling. Doesnt work. Just some ideas tossing about...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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