Skip to content

Commit fa1c732

Browse files
committed
Explicitly expose XRegExp as a property on the global object
Fixes slevithan#55.
1 parent 4b3f5a8 commit fa1c732

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tools/intro.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
// Module systems magic dance
8-
;(function(definition) {
8+
;(function(root, definition) {
99
// Don't turn on strict mode for this function, so it can assign to global
1010
var self;
1111

@@ -21,6 +21,6 @@
2121
// <script>
2222
} else {
2323
// Create global
24-
XRegExp = definition();
24+
root.XRegExp = definition();
2525
}
26-
}(function() {
26+
}(this, function() {

xregexp-all.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
// Module systems magic dance
8-
;(function(definition) {
8+
;(function(root, definition) {
99
// Don't turn on strict mode for this function, so it can assign to global
1010
var self;
1111

@@ -21,9 +21,9 @@
2121
// <script>
2222
} else {
2323
// Create global
24-
XRegExp = definition();
24+
root.XRegExp = definition();
2525
}
26-
}(function() {
26+
}(this, function() {
2727

2828
/*!
2929
* XRegExp 3.0.0-pre

0 commit comments

Comments
 (0)