Comparing version 1.0.1 to 1.0.2
@@ -48,2 +48,3 @@ var diff = require('fast-diff'); | ||
var lastOp = this.ops[index - 1]; | ||
newOp = op.clone(newOp); | ||
if (is.object(lastOp)) { | ||
@@ -50,0 +51,0 @@ if (is.number(newOp['delete']) && is.number(lastOp['delete'])) { |
@@ -52,2 +52,10 @@ var is = require('./is'); | ||
clone: function (op) { | ||
var newOp = this.attributes.clone(op); | ||
if (is.object(newOp.attributes)) { | ||
newOp.attributes = this.attributes.clone(newOp.attributes, true); | ||
} | ||
return newOp; | ||
}, | ||
iterator: function (ops) { | ||
@@ -54,0 +62,0 @@ return new Iterator(ops); |
{ | ||
"name": "rich-text", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Format for representing rich text documents and changes.", | ||
@@ -5,0 +5,0 @@ "author": "Jason Chen <jhchen7@gmail.com>", |
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
62659
1440