Skip to content

Commit

Permalink
fixed core.data function not respecting return value false - close va…
Browse files Browse the repository at this point in the history
  • Loading branch information
vakata committed Oct 7, 2015
1 parent e63f8ed commit dc0ca34
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions dist/jstree.js
Original file line number Diff line number Diff line change
Expand Up @@ -1333,9 +1333,11 @@
if(d === false) {
callback.call(this, false);
}
this[typeof d === 'string' ? '_append_html_data' : '_append_json_data'](obj, typeof d === 'string' ? $($.parseHTML(d)).filter(function () { return this.nodeType !== 3; }) : d, function (status) {
callback.call(this, status);
});
else {
this[typeof d === 'string' ? '_append_html_data' : '_append_json_data'](obj, typeof d === 'string' ? $($.parseHTML(d)).filter(function () { return this.nodeType !== 3; }) : d, function (status) {
callback.call(this, status);
});
}
// return d === false ? callback.call(this, false) : callback.call(this, this[typeof d === 'string' ? '_append_html_data' : '_append_json_data'](obj, typeof d === 'string' ? $(d) : d));
}, this));
}
Expand Down
Loading

0 comments on commit dc0ca34

Please sign in to comment.