Permalink
Browse files

removed typed-arrays polyfill from internals

  • Loading branch information...
hapticdata committed Nov 13, 2013
1 parent 3c1d1d2 commit 0a37faf1b6ef5e02a288576fa30df69a59580355
View
@@ -24,9 +24,6 @@ exports.Iterator = require('./internals/Iterator');
exports.LinkedMap = require('./internals/LinkedMap');
//simport sort comparator for numbers
exports.numberComparator = require('./internals/numberComparator');
-//set up for use with typed-arrays
-exports.Int32Array = require('./internals/Int32Array');
-exports.Float32Array = require('./internals/Float32Array');
exports.removeItemFrom = require('./internals/removeItemFrom');
});
@@ -1,3 +0,0 @@
-define(['./typedArrayPolyfill'], function(typedArrayPolyfill){
- return typedArrayPolyfill( 'Float32Array' );
-});
@@ -1,3 +0,0 @@
-define(['./typedArrayPolyfill'], function(typedArrayPolyfill){
- return typedArrayPolyfill( 'Int32Array' );
-});
@@ -1,18 +0,0 @@
-define(['./is'], function( is ){
- //create a constructor function to generate a normal Array
- //when a typed array isnt available
- var polyfillConstructor = function( els ){
- if ( is.Array(els) ){
- return els;
- }
- return new Array(els);
- };
-
- return function( type ){
- //this is the global object
- if( typeof this[type] !== 'undefined' ){
- return this[type];
- }
- return polyfillConstructor;
- };
-});

0 comments on commit 0a37faf

Please sign in to comment.