In today's dev log, Josh talks about how packets of state move up and down his object hierarchies. This sounds surprisingly similar to how events bubble and capture through the HTML DOM hierarchy.
"first the event will capture until it reaches the target then it will bubble up to the outermost element."
http://stackoverflow.com/questions/4616 ... -capturing
Post
Tue Sep 16, 2014 11:42 pm
#2
Re: State, Hierarchy, and HTML events
Which means that some weasel has probably patented that algorithm.domanite wrote:In today's dev log, Josh talks about how packets of state move up and down his object hierarchies. This sounds surprisingly similar to how events bubble and capture through the HTML DOM hierarchy.
"first the event will capture until it reaches the target then it will bubble up to the outermost element."
http://stackoverflow.com/questions/4616 ... -capturing
Post
Thu Sep 18, 2014 8:54 pm
#3
Re: State, Hierarchy, and HTML events
[quote="domanite"]In today's dev log, Josh talks about how packets of state move up and down his object hierarchies. This sounds surprisingly similar to how events bubble and capture through the HTML DOM hierarchy./quote]
Yeah I was thinking just that, at least we can now use the scripts he has in place for hierarchies for instant gratification when implementing an in-game HTML/CSS render.
Yeah I was thinking just that, at least we can now use the scripts he has in place for hierarchies for instant gratification when implementing an in-game HTML/CSS render.
<Cuisinart8> apparently without the demon driving him around Silver has the intelligence of a botched lobotomy patient ~ Mar 04 2020
console.log(`What's all ${this} ${Date.now()}`);
console.log(`What's all ${this} ${Date.now()}`);