ソースを参照

插件amd化bug修改(找不到jquery)

zhuwei 5 年 前
コミット
c7b470d7c3
2 ファイル変更4 行追加4 行削除
  1. 0 0
      js/dist/excel-preview.min.js
  2. 4 4
      js/src/excel-preview.js

ファイルの差分が大きいため隠しています
+ 0 - 0
js/dist/excel-preview.min.js


+ 4 - 4
js/src/excel-preview.js

@@ -1,10 +1,10 @@
-!function (root, factory) {
+;(function (factory) {
     if (typeof define === 'function' && define.amd) {
         define(['jquery'], factory);
     } else {
-        factory(root.jQuery);
+        factory(jQuery);
     }
-}(this, function ($) {
+}(function ($) {
     'use strict';
 
     // Default options
@@ -246,5 +246,5 @@
     // Expose defaults and Constructor (allowing overriding of prototype methods for example)
     $.fn[ pluginName ].defaults = defaults;
     $.fn[ pluginName ].Plugin = Plugin;
-});
+}));
 

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません