]> source.dussan.org Git - jquery-ui.git/commitdiff
progressbar: internal methods, fix #3203
authorChi Cheng <cloudream@gmail.com>
Sat, 16 Aug 2008 06:00:46 +0000 (06:00 +0000)
committerChi Cheng <cloudream@gmail.com>
Sat, 16 Aug 2008 06:00:46 +0000 (06:00 +0000)
ui/ui.progressbar.js

index 9e973094863cefc193ce3d6a8606f4d1056f1547..3ef335adf7e9ba801830b4cf78cfdfbf805e47a2 100644 (file)
@@ -68,7 +68,7 @@ $.widget("ui.progressbar", {
                        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
@@ -106,12 +106,12 @@ $.widget("ui.progressbar", {
                        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
@@ -135,7 +135,7 @@ $.widget("ui.progressbar", {
                                        if (self.active) {\r
                                                /*TODO*/\r
                                                self.stop();\r
-                                               self.animate();\r
+                                               self._animate();\r
                                        }\r
                                }\r
                        }\r
@@ -144,7 +144,7 @@ $.widget("ui.progressbar", {
        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
@@ -152,7 +152,7 @@ $.widget("ui.progressbar", {
                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
@@ -167,7 +167,7 @@ $.widget("ui.progressbar", {
                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