Comparing version 1.0.0-beta.8 to 1.0.0-beta.9
@@ -280,5 +280,7 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
var blot = Registry.find(node); | ||
if (blot == null || blot.domNode.parentNode === _this.domNode) | ||
if (blot == null) | ||
return; | ||
blot.detach(); | ||
if (blot.domNode.parentNode == null || blot.domNode.parentNode === _this.domNode) { | ||
blot.detach(); | ||
} | ||
}); | ||
@@ -482,14 +484,3 @@ addedNodes.filter(function (node) { | ||
get: function () { | ||
var _this = this; | ||
return [ | ||
'blotName', 'className', 'scope', 'tagName', | ||
'defaultChild', 'allowedChildren', | ||
'create', 'formats', 'value' | ||
].reduce(function (memo, key) { | ||
var value = _this.constructor[key]; | ||
if (value != null) { | ||
memo[key] = value; | ||
} | ||
return memo; | ||
}, {}); | ||
return this.constructor; | ||
}, | ||
@@ -496,0 +487,0 @@ enumerable: true, |
{ | ||
"name": "parchment", | ||
"version": "1.0.0-beta.8", | ||
"version": "1.0.0-beta.9", | ||
"description": "A document model for rich text editors", | ||
@@ -5,0 +5,0 @@ "author": "Jason Chen <jhchen7@gmail.com>", |
@@ -177,4 +177,6 @@ import { Blot, Parent, Leaf } from './blot'; | ||
let blot = Registry.find(node); | ||
if (blot == null || blot.domNode.parentNode === this.domNode) return; | ||
blot.detach(); | ||
if (blot == null) return; | ||
if (blot.domNode.parentNode == null || blot.domNode.parentNode === this.domNode) { | ||
blot.detach(); | ||
} | ||
}); | ||
@@ -181,0 +183,0 @@ addedNodes.filter((node) => { |
@@ -17,13 +17,3 @@ import { Blot, Parent, Formattable } from './blot'; | ||
get statics(): any { | ||
return [ | ||
'blotName', 'className', 'scope', 'tagName', | ||
'defaultChild', 'allowedChildren', | ||
'create', 'formats', 'value' | ||
].reduce((memo, key) => { | ||
let value = (<any>this.constructor)[key]; | ||
if (value != null) { | ||
memo[key] = value; | ||
} | ||
return memo; | ||
}, {}); | ||
return this.constructor; | ||
} | ||
@@ -30,0 +20,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
160156
2677