Skip to content

Commit

Permalink
Don`n force using of window and document in nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
kupriyanenko committed Sep 19, 2017
1 parent d8aa8ab commit 182a689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ else if (typeof define === "function" && define.amd) {
win.jBone = win.$ = jBone;
}

}(window));
}(typeof window !== "undefined" ? window : this));
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ splice = [].splice,
keys = Object.keys,

// Alias for global variables
doc = document,
doc = win.document,

isString = function(el) {
return typeof el === "string";
Expand Down

0 comments on commit 182a689

Please sign in to comment.