Removing the typed arrays

Its not clear that we will be able to leverage the Float64Array.  It may also be that the overhead of constructing these small arrays negates any benefit of faster access.  And for all coordinate arrays, we'll need arrays that grow/shrink.
This commit is contained in:
Tim Schaub
2013-02-20 01:15:39 -07:00
parent 176f18c937
commit 8f578b88b1
5 changed files with 16 additions and 12 deletions

View File

@@ -20,9 +20,8 @@ describe('ol.geom.Point', function() {
describe('#coordinates', function() {
it('is a Float64Array', function() {
it('is an array', function() {
var point = new ol.geom.Point([10, 20]);
expect(point.coordinates).toBeA(Float64Array);
expect(point.coordinates.length).toBe(2);
expect(point.coordinates[0]).toBe(10);