Comparing version 1.0.0 to 1.0.1
@@ -708,3 +708,4 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
for (var i in names) { | ||
if (match = classes[names[i]]) | ||
match = classes[names[i]]; | ||
if (match) | ||
break; | ||
@@ -1366,3 +1367,6 @@ } | ||
BlockBlot.prototype.format = function (name, value) { | ||
if (name === this.statics.blotName && !value) { | ||
if (Registry.query(name, Registry.Scope.BLOCK) == null) { | ||
return; | ||
} | ||
else if (name === this.statics.blotName && !value) { | ||
this.replaceWith(BlockBlot.blotName); | ||
@@ -1369,0 +1373,0 @@ } |
{ | ||
"name": "parchment", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A document model for rich text editors", | ||
@@ -17,4 +17,4 @@ "author": "Jason Chen <jhchen7@gmail.com>", | ||
"istanbul": "~0.4.5", | ||
"jasmine-core": "^2.5.0", | ||
"karma": "^1.2.0", | ||
"jasmine-core": "^2.5.2", | ||
"karma": "^1.3.0", | ||
"karma-babel-preprocessor": "^6.0.1", | ||
@@ -26,5 +26,4 @@ "karma-chrome-launcher": "^2.0.0", | ||
"karma-webpack": "^1.8.0", | ||
"lodash": "^4.15.0", | ||
"ts-loader": "^0.8.2", | ||
"typescript": "^1.8.10", | ||
"typescript": "^2.0.3", | ||
"vinyl-source-stream": "^1.1.0", | ||
@@ -31,0 +30,0 @@ "webpack": "^1.13.2" |
@@ -17,3 +17,5 @@ import FormatBlot from './abstract/format'; | ||
format(name: string, value: any) { | ||
if (name === this.statics.blotName && !value) { | ||
if (Registry.query(name, Registry.Scope.BLOCK) == null) { | ||
return; | ||
} else if (name === this.statics.blotName && !value) { | ||
this.replaceWith(BlockBlot.blotName); | ||
@@ -20,0 +22,0 @@ } else { |
@@ -81,3 +81,4 @@ import Attributor from './attributor/attributor'; | ||
for (let i in names) { | ||
if (match = classes[names[i]]) break; | ||
match = classes[names[i]] | ||
if (match) break; | ||
} | ||
@@ -84,0 +85,0 @@ match = match || tags[query.tagName]; |
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
162777
16
2716