fix a bug related to resetting the placeholder of an input element to ''

This commit is contained in:
rlx 2011-11-11 11:08:54 +00:00
parent 39d02953b3
commit b0065e1ec8

View file

@ -789,11 +789,9 @@ Ox.Input = function(options, self) {
} }
} }
} else { } else {
if (self.options.value === '') {
self.$input self.$input
.removeClass('OxPlaceholder') .removeClass('OxPlaceholder')
.val(''); .val(self.options.value);
}
} }
} }