r2580 - photoviewer: refactoring
Author: joern.zaefferer
Date: Fri May 15 01:35:30 2009
New Revision: 2580
Modified:
branches/photoviewer/ui/ui.photoviewer.js
Log:
photoviewer: refactoring
Modified: branches/photoviewer/ui/ui.photoviewer.js
==============================================================================
--- branches/photoviewer/ui/ui.photoviewer.js (original)
+++ branches/photoviewer/ui/ui.photoviewer.js Fri May 15 01:35:30 2009
@@ -70,7 +70,7 @@
}
},
- showLoadingIndicator: function() {
+ _showLoadingIndicator: function() {
var self = this;
this.loadingIndicatorTimeout = setTimeout(function() {
if (!self.loadingIndicator) {
@@ -81,7 +81,7 @@
}, 250);
},
- hideLoadingIndicator: function() {
+ _hideLoadingIndicator: function() {
clearTimeout(this.loadingIndicatorTimeout);
this.loadingIndicator && this.loadingIndicator.hide();
},
@@ -133,10 +133,10 @@
previous.remove();
});
}
- this.showLoadingIndicator();
+ this._showLoadingIndicator();
this._viewer("new").attr("title", anchor.title +
this.options.titleSuffix).attr("src", anchor.href).one("load", function() {
- self.hideLoadingIndicator();
+ self._hideLoadingIndicator();
self._resize($(this));
self._position($(this));
self._overlay().attr("title", anchor.title + self.options.titleSuffix)