Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

Commit

Permalink
revert "get$" as it breaks with webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
clarketm committed May 29, 2017
1 parent 7b5e14a commit a97b3bc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
11 changes: 2 additions & 9 deletions dist/js/tableexport.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,15 @@


;(function (root, factory) {
var get$ = function (require) {
try {
require.resolve('jquery');
} catch (e) {
}
return require('jquery');
};
if (typeof define === 'function' && define.amd) {
// AMD
define(function (require) {
var $ = get$(require);
var $; try { $ = require('jquery') } catch(e) {}
return factory($, require('blobjs'), require('file-saverjs'), require('xlsx'));
});
} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
// CommonJS
var $ = get$(require);
var $; try { $ = require('jquery') } catch(e) {}
module.exports = factory($, require('blobjs'), require('file-saverjs'), require('xlsx'));
} else {
// Browser globals
Expand Down
2 changes: 1 addition & 1 deletion dist/js/tableexport.min.js

Large diffs are not rendered by default.

11 changes: 2 additions & 9 deletions src/stable/js/tableexport.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,15 @@


;(function (root, factory) {
var get$ = function (require) {
try {
require.resolve('jquery');
} catch (e) {
}
return require('jquery');
};
if (typeof define === 'function' && define.amd) {
// AMD
define(function (require) {
var $ = get$(require);
var $; try { $ = require('jquery') } catch(e) {}
return factory($, require('blobjs'), require('file-saverjs'), require('xlsx'));
});
} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
// CommonJS
var $ = get$(require);
var $; try { $ = require('jquery') } catch(e) {}
module.exports = factory($, require('blobjs'), require('file-saverjs'), require('xlsx'));
} else {
// Browser globals
Expand Down
2 changes: 1 addition & 1 deletion src/stable/js/tableexport.min.js

Large diffs are not rendered by default.

0 comments on commit a97b3bc

Please sign in to comment.