Fix a typo in Layer.Vector.destroy and add unit tests for protocol and strategies construct/destroy, r=crschmidt (closes #1659)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7703 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2008-08-05 05:39:11 +00:00
parent a3ffb5734c
commit 14119a6811
2 changed files with 20 additions and 7 deletions

View File

@@ -228,7 +228,7 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
* Destroy this layer
*/
destroy: function() {
if (this.stategies) {
if (this.strategies) {
for(var i=0, len=this.strategies.length; i<len; i++) {
this.strategies[i].destroy();
}