JavaScript PropertyChangeListener tweak
Initially fire a property change event on the first subscription by sending a get to the fg instance.
This commit is contained in:
parent
e72fa5a702
commit
2072b37455
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ var SetListener = function(path, callback, context ) {
|
|||
command : 'addListener',
|
||||
node : path
|
||||
}));
|
||||
PropertyChangeListenerObjects._ws.send(JSON.stringify({
|
||||
command : 'get',
|
||||
node : path
|
||||
}));
|
||||
}
|
||||
o.push({ cb: callback, ctx: context, id: NextListenerId });
|
||||
return NextListenerId++;
|
||||
|
|
Loading…
Reference in a new issue