Created
May 27, 2016 04:52
-
-
Save goofmint/0485b8727e49b78f73dc1ab297eed17a to your computer and use it in GitHub Desktop.
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
setTreeData: function(dataOrPromise, opt) { | |
if (h5.async.isPromise(dataOrPromise)) { | |
var indicator = this.indicator().show(); | |
dataOrPromise.done(this.own(function(treeData) { | |
this._setTreeData(treeData, opt); | |
indicator.hide(); | |
})); | |
} else { | |
this._setTreeData(dataOrPromise, opt); | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment