Browse Source

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

zhuwei 5 years ago
parent
commit
c7b470d7c3
2 changed files with 4 additions and 4 deletions
  1. 0 0
      js/dist/excel-preview.min.js
  2. 4 4
      js/src/excel-preview.js

File diff suppressed because it is too large
+ 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;
-});
+}));
 

Some files were not shown because too many files changed in this diff