make input fire a clear event

This commit is contained in:
rlx 2012-02-19 16:29:09 +00:00
parent 160c93aa83
commit be44815ce4

View file

@ -634,6 +634,7 @@ Ox.Input = function(options, self) {
function clear() {
// fixme: set to min, not zero
// fixme: make this work for password
that.triggerEvent('clear');
self.options.value = '';
if (self.options.type == 'float') {
self.options.value = '0.0';