Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Commit cdad3e5

Browse files
Add a Wilson Page UMD
1 parent 873092f commit cdad3e5

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/FTColumnflow.js

+10-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323

2424
/*jslint browser:true, es5: true*/
2525
/*global Node*/
26-
var FTColumnflow = (function () {
26+
27+
28+
// UMD from https://gist.github.com/wilsonpage/8598603
29+
;(function(define){define(function(require,exports,module){
2730

2831
"use strict";
2932

@@ -1473,6 +1476,10 @@ var FTColumnflow = (function () {
14731476
}
14741477
};
14751478

1476-
return FTColumnflow;
1479+
module.exports = FTColumnflow;
14771480

1478-
}());
1481+
// Close UMD
1482+
});})(typeof define=='function'&&define.amd?define
1483+
:(function(n,w){'use strict';return typeof module=='object'?function(c){
1484+
c(require,exports,module);}:function(c){var m={exports:{}};c(function(n){
1485+
return w[n];},m.exports,m);w[n]=m.exports;};})('FTColumnflow',this));

0 commit comments

Comments
 (0)