[OpenLayers-Trac] [OpenLayers] #3308: Line: 140 Error: 'this.blocks.length' is null or not an object (on destroy at at Framed.js)

OpenLayers trac-20090302 at openlayers.org
Fri May 20 09:17:29 EDT 2011


#3308: Line: 140 Error: 'this.blocks.length' is null or not an object    (on
destroy at at Framed.js)
---------------------+------------------------------------------------------
 Reporter:  flexer   |       Owner:              
     Type:  feature  |      Status:  new         
 Priority:  minor    |   Milestone:  2.11 Release
Component:  general  |     Version:  2.10        
 Keywords:           |       State:              
---------------------+------------------------------------------------------
 Somtimes this error occurred:
 Line: 140 Error: 'this.blocks.length' is null or not an object
  - that is at Framed.js:

 destroy: function() {
   ...
   for(var i = 0; i < this.blocks.length; i++) {
   ...
   }
   this.blocks = null;

 I think the error occurred on second "destroy" function call.
 If two times call of "destroy" is a valid operation
 (seems it should be a valid operation)
  then the "for.."  operation should check if this.blocks is null.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3308>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list