OpenLayers OpenLayers

Changeset 7690

Show
Ignore:
Timestamp:
08/04/08 07:25:47 (4 months ago)
Author:
fredj
Message:

OpenLayers.Strategy destroy() nullify options property. r=elemoine (closes #1657)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Strategy.js

    r7650 r7690  
    4242        this.deactivate(); 
    4343        this.layer = null; 
     44        this.options = null; 
    4445    }, 
    4546 
  • trunk/openlayers/tests/Strategy.html

    r7650 r7690  
    1515     
    1616    function test_destroy(t) { 
    17         t.plan(1); 
     17        t.plan(2); 
    1818        var strategy = new OpenLayers.Strategy({ 
     19            options: {foo: 'bar'}, 
    1920            layer: 'foo' 
    2021        }); 
     
    2223 
    2324        t.eq(strategy.layer, null, "destroy nullify protocol.layer"); 
     25        t.eq(strategy.options, null, "destroy nullify protocol.options"); 
    2426    } 
    2527