Created
January 13, 2011 00:05
-
-
Save marcab/777145 to your computer and use it in GitHub Desktop.
Notice the number and order of the output.
This file contains 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
function run_demo() { | |
var k = new goog.ds.JsDataSource([], 'mypath'); | |
goog.ds.DataManager.getInstance().addListener(function (a,b) {console.log(a,b);}, k.getDataPath() + '/fi'); | |
k.setChildNode('fee', {'data': 1}); | |
k.setChildNode('fi', {'data': 2}); | |
k.setChildNode('fo', {'data': 3}); | |
k.setChildNode('fum', {'data': 4}); | |
} | |
>mypath | |
>mypath/fi | |
>mypath | |
>mypath | |
>mypath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment