[OpenLayers-Commits] r11498 -
sandbox/jennier/openlayers/lib/OpenLayers/Layer
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Fri Feb 25 08:47:23 EST 2011
Author: jennier
Date: 2011-02-25 05:47:22 -0800 (Fri, 25 Feb 2011)
New Revision: 11498
Modified:
sandbox/jennier/openlayers/lib/OpenLayers/Layer/Grid.js
Log:
Removing debug.
Modified: sandbox/jennier/openlayers/lib/OpenLayers/Layer/Grid.js
===================================================================
--- sandbox/jennier/openlayers/lib/OpenLayers/Layer/Grid.js 2011-02-25 13:47:21 UTC (rev 11497)
+++ sandbox/jennier/openlayers/lib/OpenLayers/Layer/Grid.js 2011-02-25 13:47:22 UTC (rev 11498)
@@ -878,23 +878,21 @@
var store;
// Default to Web SQL Storage
try {
- store = new OpenLayers.LocalTileStorage.TileSQLStorage(name, version, description, size, layer);
- console.debug(store);
- return store;
+
+ return new OpenLayers.LocalTileStorage.TileSQLStorage(name, version, description, size, layer);
+
} catch (e) {
- console.log(e);
/* Does not support Web SQL Storage */
}
// Use Web (Local) Storage if Web SQL not available.
try {
- store = new TileWebStorage();
- return store.initialize(name, version, description, size, layer);
+ return new OpenLayers.LocalTileStorage.TileWebStorage(name, version, description, size, layer);
+
} catch (e) {
/* Does not support Web (local) Storage */
// TODO Throw an error
- console.debug(e);
}
} else {
// TODO Throw an exception, local caching not enabled.
More information about the Commits
mailing list