File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1
1
Prototype . _original_property = window . Sizzle ;
2
+
3
+ ; ( function ( ) {
4
+ function fakeDefine ( fn ) {
5
+ Prototype . _actual_sizzle = fn ( ) ;
6
+ }
7
+ fakeDefine . amd = true ;
8
+
9
+ if ( typeof define !== 'undefined' && define . amd ) {
10
+ // RequireJS is loaded. We need to pretend to be `define` while Sizzle
11
+ // runs.
12
+ Prototype . _original_define = define ;
13
+ Prototype . _actual_sizzle = null ;
14
+ window . define = fakeDefine ;
15
+ }
16
+ } ) ( ) ;
17
+
2
18
//= require "repository/dist/sizzle"
3
19
20
+ ; ( function ( ) {
21
+ if ( typeof Sizzle !== 'undefined' ) {
22
+ // Sizzle was properly defined.
23
+ return ;
24
+ }
25
+
26
+ if ( typeof define !== 'undefined' && define . amd ) {
27
+ // RequireJS.
28
+ // We should find Sizzle where we put it. And we need to restore the original `define`.
29
+ window . Sizzle = Prototype . _actual_sizzle ;
30
+ window . define = Prototype . _original_define ;
31
+ delete Prototype . _actual_sizzle ;
32
+ delete Prototype . _original_define ;
33
+ // TODO: Should we make our own `define` call here?
34
+ } else if ( typeof module !== 'undefined' && module . exports ) {
35
+ // Sizzle saw that it's in a CommonJS environment and attached itself to
36
+ // `module.exports` instead.
37
+ window . Sizzle = module . exports ;
38
+ // Reset `module.exports`.
39
+ module . exports = { } ;
40
+ }
41
+ } ) ( ) ;
42
+
4
43
; ( function ( engine ) {
5
44
var extendElements = Prototype . Selector . extendElements ;
6
45
You can’t perform that action at this time.
0 commit comments