angular.copy typed array workaround

This commit is contained in:
Igor Zhukov 2016-06-30 00:59:06 +03:00
parent 3a283f5494
commit a5ab8f0937

View File

@ -971,7 +971,7 @@ function copy(source, destination) {
case '[object Uint8ClampedArray]':
case '[object Uint16Array]':
case '[object Uint32Array]':
return new source.constructor(copyElement(source.buffer));
return new source.constructor(copyElement(source.buffer), source.byteOffset, source.length);
case '[object ArrayBuffer]':
//Support: IE10