From 6b8bde0ff418297fae012b3c3109c4dec47a8aee Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 6 Jul 2006 13:00:24 +0000 Subject: [PATCH] switch around order of call to superclass.clone() and the setting of noninit/nonsimple vars. that needs to be done *afterwards*. there is no functional difference in this commit -- it is only for good precedence. git-svn-id: http://svn.openlayers.org/trunk/openlayers@901 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/HTTPRequest.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/OpenLayers/Layer/HTTPRequest.js b/lib/OpenLayers/Layer/HTTPRequest.js index 0bf4259fc1..ee149f540b 100644 --- a/lib/OpenLayers/Layer/HTTPRequest.js +++ b/lib/OpenLayers/Layer/HTTPRequest.js @@ -59,10 +59,12 @@ OpenLayers.Layer.HTTPRequest.prototype = this.options); } + //get all additions from superclasses + obj = OpenLayers.Layer.prototype.clone.apply(this, [obj]); + // copy/set any non-init, non-simple values here - //get all additions from superclasses - return OpenLayers.Layer.prototype.clone.apply(this, [obj]); + return obj; }, /**