Skip to content

Commit

Permalink
distribution of #147
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Nielsen committed Jul 3, 2017
1 parent 618bb44 commit 12ca382
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions dist/conversational-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -3465,7 +3465,7 @@ var cf;
}
var average = values / length;
var percent = Math.min(1, Math.max(0, 1 - ((50 - average) / 50)));
if (this.maxBorderWidth === 0) {
if (!this.maxBorderWidth) {
this.maxBorderWidth = this.elementToScale.offsetWidth * 0.5;
}
this.elementToScale.style.borderWidth = (this.maxBorderWidth * percent) + "px";
Expand Down Expand Up @@ -5578,16 +5578,16 @@ else {
(function (root, factory) {
// from http://ifandelse.com/its-not-hard-making-your-library-support-amd-and-commonjs/#update
if(typeof define === "function" && define.amd) {
define(["conversationalform"], function(conversationalform){
define(["conversational-form"], function(conversationalform){
return (root.conversationalform = factory(conversationalform));
});
} else if(typeof module === "object" && module.exports) {
module.exports = (root.conversationalform = factory(require("conversationalform")));
module.exports = (root.conversationalform = factory(require("conversational-form")));
} else {
root.conversationalform = factory(cf.ConversationalForm);
}
}(this, function(conversationalform) {
// module code here....
return conversationalform || cf.ConversationalForm;
}
));
));

0 comments on commit 12ca382

Please sign in to comment.