Browse Source

refactor: 配合webpack打包

es6
iapyang 4 years ago
parent
commit
ac495a4af1
  1. 2
      src/core/base.js
  2. 2
      src/core/foundation.js
  3. 18
      src/third/jquery.mousewheel.js

2
src/core/base.js

@ -3,7 +3,7 @@
* Create By GUY 2014\11\17 * Create By GUY 2014\11\17
* *
*/ */
var _global; _global = undefined;
if (typeof window !== "undefined") { if (typeof window !== "undefined") {
_global = window; _global = window;
} else if (typeof global !== "undefined") { } else if (typeof global !== "undefined") {

2
src/core/foundation.js vendored

@ -4,7 +4,7 @@
/** /**
* 初始化BI对象 * 初始化BI对象
*/ */
var _global; _global = undefined;
if (typeof window !== "undefined") { if (typeof window !== "undefined") {
_global = window; _global = window;
} else if (typeof global !== "undefined") { } else if (typeof global !== "undefined") {

18
src/third/jquery.mousewheel.js

@ -7,16 +7,18 @@
*/ */
(function (factory) { (function (factory) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define(["../core/jquery"], factory);
} else if (typeof exports === "object") {
// Node/CommonJS style for Browserify
module.exports = factory;
} else {
// Browser globals // Browser globals
factory(BI.jQuery); factory(BI.jQuery);
} // if ( typeof define === "function" && define.amd ) {
// // AMD. Register as an anonymous module.
// define(["../core/jquery"], factory);
// } else if (typeof exports === "object") {
// // Node/CommonJS style for Browserify
// module.exports = factory;
// } else {
// // Browser globals
// factory(BI.jQuery);
// }
}(function ($) { }(function ($) {
var toFix = ["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"], var toFix = ["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"],

Loading…
Cancel
Save