user specified a store&query rather than model, so create model from store/query
Usage
function () (view source)
this._v10Compat = true;
dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");
var modelParams = {
id: this.id + "_ForestStoreModel",
store: this.store,
query: this.query,
childrenAttrs: this.childrenAttr};
// Only override the model's mayHaveChildren() method if the user has specified an overrideif(this.params.mayHaveChildren){
modelParams.mayHaveChildren = dojo.hitch(this, "mayHaveChildren");
}if(this.params.getItemChildren){
modelParams.getChildren = dojo.hitch(this, function(item, onComplete, onError){this.getItemChildren((this._v10Compat &&item === this.model.root) ? null : item, onComplete, onError);
});
}this.model = newdijit.tree.ForestStoreModel(modelParams);
// For backwards compatibility, the visibility of the root node is controlled by// whether or not the user has specified a labelthis.showRoot = Boolean(this.label);