Comparing version 1.0.3 to 1.0.4
@@ -1178,3 +1178,4 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
_super.prototype.optimize.call(this); | ||
mutations.push.apply(mutations, this.observer.takeRecords()); | ||
var records = [].slice.call(this.observer.takeRecords()); | ||
mutations = mutations.concat(records); | ||
// TODO use WeakMap | ||
@@ -1231,4 +1232,4 @@ var mark = function (blot, markParent) { | ||
this.children.forEach(optimize); | ||
remaining = this.observer.takeRecords(); | ||
mutations.push.apply(mutations, remaining); | ||
remaining = [].slice.call(this.observer.takeRecords()); | ||
mutations = mutations.concat(remaining); | ||
} | ||
@@ -1235,0 +1236,0 @@ }; |
{ | ||
"name": "parchment", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A document model for rich text editors", | ||
@@ -5,0 +5,0 @@ "author": "Jason Chen <jhchen7@gmail.com>", |
@@ -63,3 +63,4 @@ import { Blot } from './abstract/blot'; | ||
super.optimize(); | ||
mutations.push.apply(mutations, this.observer.takeRecords()); | ||
let records = [].slice.call(this.observer.takeRecords()); | ||
mutations = mutations.concat(records); | ||
// TODO use WeakMap | ||
@@ -110,4 +111,4 @@ let mark = (blot: Blot, markParent: boolean = true) => { | ||
this.children.forEach(optimize); | ||
remaining = this.observer.takeRecords(); | ||
mutations.push.apply(mutations, remaining); | ||
remaining = [].slice.call(this.observer.takeRecords()); | ||
mutations = mutations.concat(remaining); | ||
} | ||
@@ -114,0 +115,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
187360
3088