Permalink
Browse files

Make guiders attach to window object more reliably

This fix ensures that the guiders object attaches to window correctly in more cases.

Previously if a build tool such as require.js wrapped the guiders.js contents in a closure then the "guiders" object would not be available outside that closure
  • Loading branch information...
1 parent e7ff5b2 commit 7229f66870701b980e98d80d1ac79cbb0016b92d @spmason committed Dec 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 guiders-1.3.0.js
View
@@ -18,8 +18,8 @@
* Enjoy!
*/
-var guiders = (function($) {
- var guiders = {};
+(function($) {
+ var guiders = this.guiders = {};
guiders.version = "1.3.0";

1 comment on commit 7229f66

@pickhardt

Interesting, makes sense! I am not pulling this because I don't want to change the main branch, but am including this while working on the new version (2.0.0)

Please sign in to comment.