Skip to content

Commit

Permalink
fixes to loading using commonJS
Browse files Browse the repository at this point in the history
  • Loading branch information
vakata committed Aug 11, 2015
1 parent 7311406 commit 911f220
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/jstree.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

// prevent another load? maybe there is a better way?
if($.jstree) {
return;
}

/**
Expand Down Expand Up @@ -7792,5 +7793,4 @@
} catch(ignore) { }
}

return $.fn.jstree;
}));
4 changes: 2 additions & 2 deletions dist/jstree.min.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/jstree.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

// prevent another load? maybe there is a better way?
if($.jstree) {
return $.fn.jstree;
return;
}

/**
Expand Down Expand Up @@ -4617,6 +4617,4 @@
var tmp = $.inArray(item, array);
return tmp !== -1 ? $.vakata.array_remove(array, tmp) : array;
};

return $.fn.jstree;
}));
1 change: 0 additions & 1 deletion src/outro.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
return $.fn.jstree;
}));

0 comments on commit 911f220

Please sign in to comment.