Camel casing method name

This commit is contained in:
ahocevar
2012-10-12 15:03:38 +02:00
parent 157dd9e1c2
commit e5feda7ad7
+4 -4
View File
@@ -111,7 +111,7 @@ OpenLayers.Control.CacheWrite = OpenLayers.Class(OpenLayers.Control, {
addLayer: function(evt) { addLayer: function(evt) {
evt.layer.events.on({ evt.layer.events.on({
tileloadstart: this.makeSameOrigin, tileloadstart: this.makeSameOrigin,
tileloaded: this.onTileloaded, tileloaded: this.onTileLoaded,
scope: this scope: this
}); });
}, },
@@ -128,7 +128,7 @@ OpenLayers.Control.CacheWrite = OpenLayers.Class(OpenLayers.Control, {
removeLayer: function(evt) { removeLayer: function(evt) {
evt.layer.events.un({ evt.layer.events.un({
tileloadstart: this.makeSameOrigin, tileloadstart: this.makeSameOrigin,
tileloaded: this.onTileloaded, tileloaded: this.onTileLoaded,
scope: this scope: this
}); });
}, },
@@ -157,13 +157,13 @@ OpenLayers.Control.CacheWrite = OpenLayers.Class(OpenLayers.Control, {
}, },
/** /**
* Method: onTileloaded * Method: onTileLoaded
* Decides whether a tile can be cached and calls the cache method. * Decides whether a tile can be cached and calls the cache method.
* *
* Parameters: * Parameters:
* evt - {Event} * evt - {Event}
*/ */
onTileloaded: function(evt) { onTileLoaded: function(evt) {
if (this.active && !evt.aborted && if (this.active && !evt.aborted &&
evt.tile instanceof OpenLayers.Tile.Image && evt.tile instanceof OpenLayers.Tile.Image &&
evt.tile.url.substr(0, 5) !== 'data:') { evt.tile.url.substr(0, 5) !== 'data:') {