Bump to v4.4.0.

This commit is contained in:
John-David Dalton
2016-02-15 20:25:07 -08:00
parent 8bff780a94
commit 94ba2e24e8
110 changed files with 450 additions and 263 deletions

View File

@@ -9,10 +9,11 @@ import cloneArrayBuffer from './_cloneArrayBuffer';
* @returns {Object} Returns the cloned typed array.
*/
function cloneTypedArray(typedArray, isDeep) {
var buffer = typedArray.buffer,
var arrayBuffer = typedArray.buffer,
buffer = isDeep ? cloneArrayBuffer(arrayBuffer) : arrayBuffer,
Ctor = typedArray.constructor;
return new Ctor(isDeep ? cloneArrayBuffer(buffer) : buffer, typedArray.byteOffset, typedArray.length);
return new Ctor(buffer, typedArray.byteOffset, typedArray.length);
}
export default cloneTypedArray;