Browse Source

refactor: 配合webpack打包

master
iapyang 4 years ago
parent
commit
ac495a4af1
  1. 2
      src/core/base.js
  2. 2
      src/core/foundation.js
  3. 22
      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") {

22
src/third/jquery.mousewheel.js

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

Loading…
Cancel
Save