Changeset 2899
- Timestamp:
- 03/26/07 16:55:32 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/BaseTypes.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Geometry/LinearRing.js (modified) (1 diff)
- trunk/openlayers/tests/Geometry/test_LinearRing.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/BaseTypes.js
r2861 r2899 21 21 if (typeof arguments[i] == "function") { 22 22 var mixin = arguments[i]; 23 arguments[i] = new mixin(OpenLayers.Class.isPrototype);23 arguments[i] = mixin.prototype; 24 24 } 25 25 OpenLayers.Util.extend(proto, arguments[i]); trunk/openlayers/lib/OpenLayers/Geometry/LinearRing.js
r2803 r2899 109 109 }, 110 110 111 112 /** 113 * @returns The coordinates components as a string 114 * @type String 115 */ 116 toString: function() { 117 return this.components.toString(); 118 }, 119 111 120 /** @final @type String */ 112 121 CLASS_NAME: "OpenLayers.Geometry.LinearRing" trunk/openlayers/tests/Geometry/test_LinearRing.html
r2803 r2899 91 91 } 92 92 93 function test_05_LinearRing_toString(t) { 94 t.plan(1); 95 96 ring = new OpenLayers.Geometry.LinearRing(components); 97 t.eq( ring.toString(), components.toString() + ',' + components[0].toString(), "toString output is ok"); 98 } 99 93 100 // --> 94 101 </script>
