The loadURL function now returns something that acts more like XMLHttpRequest should. If you name this return request, call request.abort to abort the request. r=crschmidt (closes #1386)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6408 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2008-02-29 00:16:47 +00:00
parent 145981c303
commit 836f037fda
4 changed files with 12 additions and 16 deletions
+4 -8
View File
@@ -72,10 +72,8 @@
//running request (cancelled) -- 4 tests + 1 test (for request abort)
tile.request = {
transport: {
'abort': function() {
t.ok(true, "request aborted");
}
'abort': function() {
t.ok(true, "request aborted");
}
};
OpenLayers.Tile.WFS.prototype.loadFeaturesForRegion.apply(tile, [g_Success]);
@@ -100,10 +98,8 @@
var _gAbort = false;
tile.request = {
transport: {
abort: function() {
_gAbort = true;
}
abort: function() {
_gAbort = true;
}
}