Permalink
Browse files

Replacing alert with console.log for future node.js compatibility

  • Loading branch information...
1 parent 23f30e6 commit 1c8fdcfcf6b154cbb370d47bf4528e7825427e8f @tmcw tmcw committed May 3, 2011
Showing with 11 additions and 10 deletions.
  1. +5 −4 modestmaps.js
  2. +2 −2 modestmaps.min.js
  3. +3 −3 src/projection.js
  4. +1 −1 src/provider.js
View
@@ -1,5 +1,5 @@
/*!
- * Modest Maps JS v0.15.2
+ * Modest Maps JS v0.16.0
* http://modestmaps.com/
*
* Copyright (c) 2010 Stamen Design, All Rights Reserved.
@@ -354,11 +354,11 @@ if (!com) {
transformation: null,
rawProject: function(point) {
- alert("Abstract method not implemented by subclass.");
+ console && console.log("Abstract method not implemented by subclass.");
},
rawUnproject: function(point) {
- alert("Abstract method not implemented by subclass.");
+ console && console.log("Abstract method not implemented by subclass.");
},
project: function(point) {
@@ -426,6 +426,7 @@ if (!com) {
};
MM.extend(MM.MercatorProjection, MM.Projection);
+
//////////////////////////// Providers
@@ -453,7 +454,7 @@ if (!com) {
bottomRightInnerLimit: new MM.Coordinate(1,1,0).zoomTo(18),
getTileUrl: function(coordinate) {
- alert("Abstract method not implemented by subclass.");
+ console && console.log("Abstract method not implemented by subclass.");
},
locationCoordinate: function(location) {
Oops, something went wrong.

0 comments on commit 1c8fdcf

Please sign in to comment.