Skip to content

Commit

Permalink
Make #35 to vex.dialog.coffee (it was made to compiled JS by mistake)…
Browse files Browse the repository at this point in the history
… and bump to 2.0.0 since #35 is technically an API change
  • Loading branch information
adamschwartz committed Nov 25, 2013
1 parent 0f18641 commit f48aa35
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vex",
"version": "1.3.5",
"version": "2.0.0",
"homepage": "http://github.hubspot.com/vex/docs/welcome",
"authors": [
"Adam Schwartz <aschwartz@hubspot.com>"
Expand Down
2 changes: 1 addition & 1 deletion coffee/vex.dialog.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ vexDialogFactory = ($, vex) ->
return $form

dialog.getFormValueOnSubmit = (formData) ->
if formData.vex
if formData.vex or formData.vex is ''
return true if formData.vex is '_vex-empty-value'
return formData.vex

Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vex",
"repo": "HubSpot/vex",
"description": "Beautiful, functional, dialogs in Javascript",
"version": "1.3.5",
"version": "2.0.0",
"homepage": "http://github.hubspot.com/vex",
"license": "MIT",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions js/vex.combined.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/vex.dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
return $form;
};
dialog.getFormValueOnSubmit = function(formData) {
if (formData.vex || formData.vex === "") {
if (formData.vex || formData.vex === '') {
if (formData.vex === '_vex-empty-value') {
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions js/vex.dialog.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f48aa35

Please sign in to comment.