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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user