Browse Source

chore: revert 源码修改

es6
iapyang 5 years ago
parent
commit
4159bdb87f
  1. 2
      src/core/base.js
  2. 2
      src/core/foundation.js
  3. 12
      src/third/jquery.mousewheel.js
  4. 5
      typescript/fix/fix.ie.ts
  5. 5
      typescript/fix/fix.ts

2
src/core/base.js

@ -3,7 +3,7 @@
* Create By GUY 2014\11\17 * Create By GUY 2014\11\17
* *
*/ */
_global = undefined; var _global;
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对象
*/ */
_global = undefined; var _global;
if (typeof window !== "undefined") { if (typeof window !== "undefined") {
_global = window; _global = window;
} else if (typeof global !== "undefined") { } else if (typeof global !== "undefined") {

12
src/third/jquery.mousewheel.js

@ -7,8 +7,16 @@
*/ */
(function (factory) { (function (factory) {
// Browser globals if ( typeof define === "function" && define.amd ) {
factory(BI.jQuery); // 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"],

5
typescript/fix/fix.ie.ts

@ -1,5 +0,0 @@
// @ts-ignore
import * as Fix from "../../dist/fix/fix.ie.js";
// @ts-ignore
_global.Fix = Fix;

5
typescript/fix/fix.ts

@ -1,5 +0,0 @@
// @ts-ignore
import * as Fix from "../../dist/fix/fix.js";
// @ts-ignore
_global.Fix = Fix;
Loading…
Cancel
Save