forked from 0x2620/oxjs
refactoring
This commit is contained in:
parent
ab68c4a54f
commit
9ee0742b53
6 changed files with 15 additions and 13 deletions
|
|
@ -216,9 +216,9 @@ Ox.Progressbar = function(options, self) {
|
|||
self.setOption = function(key, value) {
|
||||
if (key == 'cancelled') {
|
||||
toggleCancelled();
|
||||
} if (key == 'paused') {
|
||||
} else if (key == 'paused') {
|
||||
togglePaused();
|
||||
} if (key == 'progress') {
|
||||
} else if (key == 'progress') {
|
||||
self.options.progress = Ox.limit(self.options.progress, 0, 1);
|
||||
!self.options.paused && !self.options.cancelled && setProgress(true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue