Skip to content

Commit

Permalink
Merge pull request #8 from mancioshell/master
Browse files Browse the repository at this point in the history
Added support to RequireJS for fustyFlowFactory. Fix issue #6
  • Loading branch information
AidasK committed Nov 17, 2015
2 parents ac26a06 + 6da9e07 commit 4e4f9e9
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/fusty-flow-factory.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
function fustyFlowFactory(opts) {
var flow = new Flow(opts);
if (flow.support) {
return flow;
(function (Flow, FustyFlow, window) {
'use strict';

var FustyFlowFactory = function (opts) {
var flow = new Flow(opts);
if (flow.support) {
return flow;
}
return new FustyFlow(opts);
}
return new FustyFlow(opts);
}

window.FustyFlowFactory = FustyFlowFactory;

})(window.Flow, window.FustyFlow, window);

0 comments on commit 4e4f9e9

Please sign in to comment.