Tile.Image tests: add missing scope params (see #184)

This commit is contained in:
fredj
2012-02-02 17:03:35 +01:00
parent 2d0714990d
commit 79a64f4be6
+2 -2
View File
@@ -85,8 +85,8 @@
var layer = new OpenLayers.Layer.WMS( var layer = new OpenLayers.Layer.WMS(
"Name", "Name",
"http://labs.metacarta.com/TESTURL?", "http://labs.metacarta.com/TESTURL?",
{layers: 'basic'}, {async: true, getURLasync: function(bounds, callback) { {layers: 'basic'}, {async: true, getURLasync: function(bounds, callback, scope) {
callback(this.getURL(bounds)); callback.call(scope, this.getURL(bounds));
}} }}
); );
map.addLayer(layer); map.addLayer(layer);