Thread: Simple question on db.addhandler
-
March 21st, 2017, 02:56 #1
Simple question on db.addhandler
Why does this work (onSourceUpdate is called):
Code:DB.addHandler(DB.getPath(node, "defenses.*"), "onChildUpdate", onSourceUpdate);
Code:DB.addHandler(DB.getPath(node, "defenses.ac.base"), "onChildUpdate", onSourceUpdate); DB.addHandler(DB.getPath(node, "defenses.ac.shield"), "onChildUpdate", onSourceUpdate); DB.addHandler(DB.getPath(node, "defenses.ac.misc"), "onChildUpdate", onSourceUpdate);
-
March 21st, 2017, 03:02 #2
onChildUpdate will only trigger when child nodes of the one listed are updated. https://www.fantasygrounds.com/refdo...#onChildUpdate
If you want to specify a specific node use onUpdate: https://www.fantasygrounds.com/refdo...e.xcp#onUpdatePrivate Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
March 21st, 2017, 03:53 #3
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks