celestian
March 21st, 2017, 02:56
Why does this work (onSourceUpdate is called):
DB.addHandler(DB.getPath(node, "defenses.*"), "onChildUpdate", onSourceUpdate);
But this doesn't (onSourceUpdate is NOT called)?
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);
I've a need to individually add a handler for defenses.ac.base, defenses.ac.shield, defenses.ac.misc and not include defenses.ac.total. When I list them individually it doesn't call onSourceUpdate when those items are updated.
DB.addHandler(DB.getPath(node, "defenses.*"), "onChildUpdate", onSourceUpdate);
But this doesn't (onSourceUpdate is NOT called)?
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);
I've a need to individually add a handler for defenses.ac.base, defenses.ac.shield, defenses.ac.misc and not include defenses.ac.total. When I list them individually it doesn't call onSourceUpdate when those items are updated.