File tree Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Expand file tree Collapse file tree 1 file changed +20
-9
lines changed Original file line number Diff line number Diff line change 1
- ( function ( root , factory ) {
2
- if ( typeof define === 'function' && define . amd ) { // eslint-disable-line no-undef
3
- define ( [ ] , factory ) ; // eslint-disable-line no-undef
4
- } else if ( typeof module === 'object' && module . exports ) {
5
- module . exports = factory ( ) ;
1
+ ; ( function ( root , factory ) {
2
+ var deepDiff = factory ( root ) ;
3
+ if ( typeof define === 'function' && define . amd ) {
4
+ // AMD
5
+ define ( 'DeepDiff' , function ( ) {
6
+ return deepDiff ;
7
+ } ) ;
8
+ } else if ( typeof exports === 'object' ) {
9
+ // Node.js
10
+ module . exports = deepDiff ;
6
11
} else {
7
- root . returnExports = factory ( ) ;
12
+ // Browser globals
13
+ var _deepdiff = root . DeepDiff ;
14
+ deepDiff . noConflict = function ( ) {
15
+ if ( root . DeepDiff === deepDiff ) {
16
+ root . DeepDiff = _deepdiff ;
17
+ }
18
+ return deepDiff ;
19
+ } ;
20
+ root . DeepDiff = deepDiff ;
8
21
}
9
- // eslint-disable-next-line no-undef
10
- } ( typeof self !== 'undefined' ? self : this , function ( ) {
11
- var root = this ;
22
+ } ( this , function ( root ) {
12
23
var $conflict = root . DeepDiff ;
13
24
14
25
var validKinds = [ 'N' , 'E' , 'A' , 'D' ] ;
You can’t perform that action at this time.
0 commit comments