refactor(util): use Object.assign polyfill

This commit is contained in:
Adam Bradley
2016-01-11 11:17:55 -06:00
parent 2f42a55b12
commit b79d6cc8ea
10 changed files with 2520 additions and 2619 deletions

View File

@@ -1,5 +1,5 @@
import {CSS, rafFrames} from '../util/dom';
import {extend} from '../util/util';
import {assign} from '../util/util';
const doc: any = document;
@@ -53,7 +53,7 @@ export class Animation {
constructor(ele, opts={}) {
this.reset();
this._opts = extend({
this._opts = assign({
renderDelay: 16
}, opts);
@@ -516,7 +516,7 @@ export class Animation {
function copy(dest, src) {
// undo what stage() may have already done
extend(dest, src);
assign(dest, src);
dest._isFinished = dest._isStaged = dest.isProgress = false;
dest._chld = [];