Skip to content

Commit d3773c9

Browse files
author
Alejandro Suarez
committed
fixin bug on requirejs and amd plugin
1 parent 998cdb6 commit d3773c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scripts/cf/ConversationalForm.plugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@
2727
(function (root, factory) {
2828
// from http://ifandelse.com/its-not-hard-making-your-library-support-amd-and-commonjs/#update
2929
if(typeof define === "function" && define.amd) {
30-
define(["conversationalform"], function(conversationalform){
30+
define(["conversational-form"], function(conversationalform){
3131
return (root.conversationalform = factory(conversationalform));
3232
});
3333
} else if(typeof module === "object" && module.exports) {
34-
module.exports = (root.conversationalform = factory(require("conversationalform")));
34+
module.exports = (root.conversationalform = factory(require("conversational-form")));
3535
} else {
3636
root.conversationalform = factory(cf.ConversationalForm);
3737
}
3838
}(this, function(conversationalform) {
3939
// module code here....
4040
return conversationalform || cf.ConversationalForm;
4141
}
42-
));
42+
));

0 commit comments

Comments
 (0)