Browse files

A small bug fix for empty strings, pointed out by @selecton.

  • Loading branch information...
1 parent a487609 commit 6553d53ef1eff059b124aa3b004bd5e4b6c36443 Ralph Holzmann committed Jan 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 dom/form_params/form_params.js
View
4 dom/form_params/form_params.js
@@ -77,7 +77,7 @@ steal("jquery/dom").then(function( $ ) {
$this;
// Don't do all this work if there's no value
- if ( value ) {
+ if ( value !== undefined ) {
$this = $(this);
// Nested these if statements for performance
@@ -96,7 +96,7 @@ steal("jquery/dom").then(function( $ ) {
$this.val( value );
}
}
- });
+ });
},
getParams: function( convert ) {
var data = {},

0 comments on commit 6553d53

Please sign in to comment.