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 {
if (self.options.value === '') {
self.$input
.removeClass('OxPlaceholder')
.val('');
}
self.$input
.removeClass('OxPlaceholder')
.val(self.options.value);
}
}