percentState: this.percentState\r
};\r
},\r
- propagate: function(n,e) {\r
+ _propagate: function(n,e) {\r
$.ui.plugin.call(this, n, [e, this.ui()]);\r
this.element.triggerHandler(n == "progressbar" ? n : ["progressbar", n].join(""), [e, this.ui()], this.options[n]);\r
},\r
options.duration\r
);\r
\r
- this.animate();\r
+ this._animate();\r
\r
- this.propagate('start', this.ui());\r
+ this._propagate('start', this.ui());\r
return false;\r
},\r
- animate: function() {\r
+ _animate: function() {\r
var self = this,\r
options = this.options,\r
interval = options.interval;\r
if (self.active) {\r
/*TODO*/\r
self.stop();\r
- self.animate();\r
+ self._animate();\r
}\r
}\r
}\r
pause: function() {\r
if (this.disabled) return;\r
this.bar.stop();\r
- this.propagate('pause', this.ui());\r
+ this._propagate('pause', this.ui());\r
},\r
stop: function() {\r
this.bar.stop();\r
this.textElement.width(0);\r
this.bar.addClass('ui-hidden');\r
this.options.interval = this.options._interval;\r
- this.propagate('stop', this.ui());\r
+ this._propagate('stop', this.ui());\r
},\r
progress: function(percentState) {\r
if (this.bar.is('.ui-hidden')) {\r
if (this.options.range && !this.options.text) {\r
this.textElement.html(Math.round(this.percentState) + '%');\r
}\r
- this.propagate('progress', this.ui());\r
+ this._propagate('progress', this.ui());\r
}\r
});\r
\r