Map the original object that was referenced by $ back to $.
1
2
3
4
5
|
|
Revert the $ alias and then create and execute a function to provide the $ as a jQuery alias inside the function's scope. Inside the function the original $ object is not available. This works well for most plugins that don't rely on any other library.
1
2
3
4
5
6
7
8
|
|
Create a different alias instead of jQuery to use in the rest of the script.
1
2
3
4
5
6
7
|
|
Completely move jQuery to a new namespace in another object.
1
2
|
|
Result:
1
2
3
4
5
6
7
8
|
|
Load two versions of jQuery (not recommended). Then, restore jQuery's globally scoped variables to the first loaded jQuery.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
|