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

View File

@@ -85,8 +85,8 @@
var layer = new OpenLayers.Layer.WMS(
"Name",
"http://labs.metacarta.com/TESTURL?",
{layers: 'basic'}, {async: true, getURLasync: function(bounds, callback) {
callback(this.getURL(bounds));
{layers: 'basic'}, {async: true, getURLasync: function(bounds, callback, scope) {
callback.call(scope, this.getURL(bounds));
}}
);
map.addLayer(layer);