Changeset 1116
- Timestamp:
- 06/19/09 17:15:04 (1 year ago)
- Files:
-
- core/trunk/geoext/lib/GeoExt/widgets/Action.js (modified) (2 diffs)
- core/trunk/geoext/tests/lib/GeoExt/widgets/Action.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
core/trunk/geoext/lib/GeoExt/widgets/Action.js
r1109 r1116 48 48 * been added to one, this config property may be omitted. 49 49 */ 50 map: null, 50 51 51 52 /** private: property[uScope] … … 98 99 if(config.map) { 99 100 config.map.addControl(ctrl); 101 delete config.map; 100 102 } 101 103 ctrl.events.on({ core/trunk/geoext/tests/lib/GeoExt/widgets/Action.html
r941 r1116 9 9 <script type="text/javascript"> 10 10 function test_constructor(t) { 11 t.plan(1 1)11 t.plan(12) 12 12 13 13 var ctrl, scope, handler, toggleHandler, checkHandler, cfg, action; … … 35 35 t.ok(action.control.map === map, 36 36 "constructor adds control to map if provided"); 37 t.ok(!action.initialConfig.map, 38 "action does not have a reference to the map"); 37 39 t.ok(action.uScope == scope, 38 40 "constructor sets this.uScope to user-provided scope");