Browse Source

angular.copy typed array workaround

master
Igor Zhukov 9 years ago
parent
commit
a5ab8f0937
  1. 2
      app/vendor/angular/angular.js

2
app/vendor/angular/angular.js vendored

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

Loading…
Cancel
Save