File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 16
16
root . Mobilebone = factory ( root , { } ) ;
17
17
}
18
18
} ) ( this , function ( root , Mobilebone ) {
19
+ if ( document . MBLOADED ) {
20
+ return 'Don\'t repeat load Mobilebone!' ;
21
+ }
22
+
19
23
// Avoid repeated callbacks
20
24
var store = { } ;
21
25
30
34
var supportHistory = "pushState" in history && "replaceState" in history ;
31
35
32
36
Mobilebone . support = supportHistory ;
33
-
37
+
34
38
var hasInited = false ;
35
39
36
40
/**
1164
1168
} ) ;
1165
1169
}
1166
1170
} ) ;
1171
+
1172
+ document . MBLOADED = true ;
1167
1173
1168
1174
return Mobilebone ;
1169
1175
} ) ;
Original file line number Diff line number Diff line change 39
39
</ div >
40
40
41
41
< script src ="../../src/mobilebone.js "> </ script >
42
- < script src ="../complex/js/zepto-docs .js "> </ script >
42
+ < script src ="../../src/mobilebone .js "> </ script >
43
43
< script >
44
44
var optionsTest = function ( elein , eleout , options ) {
45
45
// ajax过场回调options参数测试
You can’t perform that action at this time.
0 commit comments