Changeset 7690
- Timestamp:
- 08/04/08 07:25:47 (4 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Strategy.js (modified) (1 diff)
- trunk/openlayers/tests/Strategy.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Strategy.js
r7650 r7690 42 42 this.deactivate(); 43 43 this.layer = null; 44 this.options = null; 44 45 }, 45 46 trunk/openlayers/tests/Strategy.html
r7650 r7690 15 15 16 16 function test_destroy(t) { 17 t.plan( 1);17 t.plan(2); 18 18 var strategy = new OpenLayers.Strategy({ 19 options: {foo: 'bar'}, 19 20 layer: 'foo' 20 21 }); … … 22 23 23 24 t.eq(strategy.layer, null, "destroy nullify protocol.layer"); 25 t.eq(strategy.options, null, "destroy nullify protocol.options"); 24 26 } 25 27
