in button, react to change of tooltip option

This commit is contained in:
rlx 2011-11-06 00:04:27 +00:00
parent da7e0b73e0
commit e6b634ddef
2 changed files with 4 additions and 1 deletions

View file

@ -131,7 +131,7 @@ Ox.Button = function(options, self) {
}
that.triggerEvent('change');
} else if (key == 'tooltip') {
that.$tooltip.options({title: value});
} else if (key == 'title') {
setTitle(value);
} else if (key == 'width') {

View file

@ -2126,6 +2126,9 @@ Ox.VideoPlayer = function(options, self) {
}
function togglePaused(from) {
if (!self.loadedMetadata) {
return;
}
self.options.paused = !self.options.paused;
self.$timeline && self.$timeline.options({
paused: self.options.paused