Skip to content

Commit 77d6c1e

Browse files
author
Daniel Haehn
committed
Ensure compatibility with jQuery by not overwriting the $ character during compilation.
1 parent 6be5b73 commit 77d6c1e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

X.js

+4
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ function inject(a, b) {
153153
return a; // return the altered object
154154
}
155155

156+
// make sure we don't overwrite a $ sign to ensure compatibility with jQuery
157+
var $ = window.$;
158+
156159
//
157160
// BROWSER COMPATIBILITY FIXES GO HERE
158161
//
@@ -339,6 +342,7 @@ bind_shim();
339342
requestAnimationFrame_shim();
340343
arrayBufferSlice_shim();
341344

345+
goog.exportSymbol('$', $);
342346
goog.exportSymbol('Function.prototype.bind', Function.prototype.bind);
343347
goog.exportSymbol('window.requestAnimationFrame', window.requestAnimationFrame);
344348
goog.exportSymbol('window.cancelAnimationFrame', window.cancelAnimationFrame);

0 commit comments

Comments
 (0)