Changeset 2863
- Timestamp:
- 03/22/07 17:06:29 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Map.js
r2858 r2863 128 128 theme: null, 129 129 130 /** Should OpenLayers allow events on the map to fall through to other 131 * elements on the page, or should it swallow them? (#457) 132 * 133 * Default is to swallow them. 134 * 135 * @type boolean 136 */ 137 fallThrough: false, 138 130 139 /** 131 140 * @constructor … … 135 144 */ 136 145 initialize: function (div, options) { 146 147 //set the default options 148 this.setOptions(options); 137 149 138 150 this.div = div = OpenLayers.Util.getElement(div); … … 155 167 this.viewPortDiv.appendChild(this.layerContainerDiv); 156 168 157 this.events = new OpenLayers.Events(this, div, this.EVENT_TYPES );169 this.events = new OpenLayers.Events(this, div, this.EVENT_TYPES, this.fallThrough); 158 170 159 171 this.updateSize(); … … 172 184 this.updateSize.bindAsEventListener(this)); 173 185 } 174 175 //set the default options176 this.setOptions(options);177 186 178 187 // only append link stylesheet if the theme property is set
