Skip to content

Commit

Permalink
Pass window or global instead of this
Browse files Browse the repository at this point in the history
A fix for correct work in closures, when `this` doesn't actually refer
to a global object (for example, in a browserify bundle)
  • Loading branch information
Arseniy Forshtreter committed Sep 28, 2015
1 parent fde1563 commit 8f17a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vow.js
Expand Up @@ -1325,4 +1325,4 @@ if(typeof define === 'function') {

defineAsGlobal && (global.vow = vow);

})(this);
})(typeof window !== 'undefined' ? window : global);

0 comments on commit 8f17a03

Please sign in to comment.