Changeset 2859
- Timestamp:
- 03/22/07 16:35:16 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/BaseTypes.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Geometry/Point.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/BaseTypes.js
r2803 r2859 10 10 create: function() { 11 11 return function() { 12 if ( arguments &&arguments[0] != OpenLayers.Class.isPrototype)12 if (!arguments || arguments[0] != OpenLayers.Class.isPrototype) 13 13 this.initialize.apply(this, arguments); 14 14 } trunk/openlayers/lib/OpenLayers/Geometry/Point.js
r2803 r2859 19 19 OpenLayers.Geometry.Point = OpenLayers.Class.create(); 20 20 OpenLayers.Geometry.Point.prototype = 21 OpenLayers.Class.inherit(OpenLayers. LonLat, OpenLayers.Geometry, {21 OpenLayers.Class.inherit(OpenLayers.Geometry, OpenLayers.LonLat, { 22 22 23 23 /** @type float */ … … 34 34 */ 35 35 initialize: function(x, y) { 36 OpenLayers.Geometry.prototype.initialize.apply(this, arguments); 36 37 OpenLayers.LonLat.prototype.initialize.apply(this, arguments); 37 OpenLayers.Geometry.prototype.initialize.apply(this, arguments);38 38 39 39 this.x = this.lon;
