File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1616 root . Mobilebone = factory ( root , { } ) ;
1717 }
1818} ) ( this , function ( root , Mobilebone ) {
19+ if ( document . MBLOADED ) {
20+ return 'Don\'t repeat load Mobilebone!' ;
21+ }
22+
1923 // Avoid repeated callbacks
2024 var store = { } ;
2125
3034 var supportHistory = "pushState" in history && "replaceState" in history ;
3135
3236 Mobilebone . support = supportHistory ;
33-
37+
3438 var hasInited = false ;
3539
3640 /**
11641168 } ) ;
11651169 }
11661170 } ) ;
1171+
1172+ document . MBLOADED = true ;
11671173
11681174 return Mobilebone ;
11691175} ) ;
Original file line number Diff line number Diff line change 3939</ div >
4040
4141< script src ="../../src/mobilebone.js "> </ script >
42- < script src ="../complex/js/zepto-docs .js "> </ script >
42+ < script src ="../../src/mobilebone .js "> </ script >
4343< script >
4444var optionsTest = function ( elein , eleout , options ) {
4545 // ajax过场回调options参数测试
You can’t perform that action at this time.
0 commit comments