Permalink
Browse files

Additional small cleanup

  • Loading branch information...
1 parent 99f0883 commit ad3c3987009541ec4b406f0de842a671d7c2afe8 @migurski migurski committed May 16, 2011
Showing with 7 additions and 17 deletions.
  1. +3 −8 modestmaps.js
  2. +1 −1 modestmaps.min.js
  3. +0 −5 src/layer.js
  4. +2 −2 src/provider.js
  5. +1 −1 src/requests.js
View
@@ -476,12 +476,12 @@ if (!com) {
getTile: function(coordinate)
{
- console && console.log("Abstract method not implemented by subclass.");
+ throw "Abstract method not implemented by subclass.";
},
releaseTile: function(element)
{
- console && console.log("Abstract method not implemented by subclass.");
+ throw "Abstract method not implemented by subclass.";
},
locationCoordinate: function(location) {
@@ -859,7 +859,7 @@ if (!com) {
}
},
- // Clear everything in the queue except for certain keys, speciied
+ // Clear everything in the queue except for certain keys, specified
// by an object of the form
//
// { key: throwawayvalue }
@@ -1521,8 +1521,6 @@ if (!com) {
setProvider: function(newProvider)
{
- console.log(['okay...']);
-
if(newProvider.hasOwnProperty('getTileUrl'))
{
newProvider = new MM.TilePaintingProvider(newProvider);
@@ -1541,7 +1539,6 @@ if (!com) {
if(this.levels.hasOwnProperty(name))
{
var level = this.levels[name];
- console.log(['level', name, level.firstChild]);
while(level.firstChild)
{
@@ -1569,8 +1566,6 @@ if (!com) {
{
this.draw();
}
-
- console.log(['yes']);
},
// compares manhattan distance from center of
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -488,8 +488,6 @@
setProvider: function(newProvider)
{
- console.log(['okay...']);
-
if(newProvider.hasOwnProperty('getTileUrl'))
{
newProvider = new MM.TilePaintingProvider(newProvider);
@@ -508,7 +506,6 @@
if(this.levels.hasOwnProperty(name))
{
var level = this.levels[name];
- console.log(['level', name, level.firstChild]);
while(level.firstChild)
{
@@ -536,8 +533,6 @@
{
this.draw();
}
-
- console.log(['yes']);
},
// compares manhattan distance from center of
View
@@ -30,12 +30,12 @@
getTile: function(coordinate)
{
- console && console.log("Abstract method not implemented by subclass.");
+ throw "Abstract method not implemented by subclass.";
},
releaseTile: function(element)
{
- console && console.log("Abstract method not implemented by subclass.");
+ throw "Abstract method not implemented by subclass.";
},
locationCoordinate: function(location) {
View
@@ -73,7 +73,7 @@
}
},
- // Clear everything in the queue except for certain keys, speciied
+ // Clear everything in the queue except for certain keys, specified
// by an object of the form
//
// { key: throwawayvalue }

0 comments on commit ad3c398

Please sign in to comment.