incorporate @ahocevar's review

This commit is contained in:
Bart van den Eijnden
2012-02-21 12:09:19 +01:00
parent 815cafd900
commit 990a33662e
+1 -1
View File
@@ -221,7 +221,7 @@ OpenLayers.Strategy.BBOX = OpenLayers.Class(OpenLayers.Strategy, {
* returned by the layer protocol. * returned by the layer protocol.
*/ */
triggerRead: function(options) { triggerRead: function(options) {
if (this.response && options.noAbort !== true) { if (this.response && !(options && options.noAbort === true)) {
this.layer.protocol.abort(this.response); this.layer.protocol.abort(this.response);
this.layer.events.triggerEvent("loadend"); this.layer.events.triggerEvent("loadend");
} }