Use simpler comparison function

This commit is contained in:
Tom Payne
2012-07-30 13:02:31 +02:00
parent 34f9e35ba9
commit 8512eaa24f

View File

@@ -28,7 +28,7 @@ ol.TileGrid = function(resolutions, extent, origin, opt_tileSize) {
*/
this.resolutions_ = resolutions;
goog.asserts.assert(goog.array.isSorted(resolutions, function(a, b) {
return -goog.array.defaultCompare(a, b);
return b - a;
}, true));
/**