mobiledoc-kit
Advanced tools
Comparing version 0.12.2 to 0.12.3
@@ -62,7 +62,15 @@ 'use strict'; | ||
this.markers = []; | ||
this.sections.push([MOBILEDOC_MARKUP_SECTION_TYPE, tagName, this.markers, attributes]); | ||
if (attributes && attributes.length !== 0) { | ||
this.sections.push([MOBILEDOC_MARKUP_SECTION_TYPE, tagName, this.markers, attributes]); | ||
} else { | ||
this.sections.push([MOBILEDOC_MARKUP_SECTION_TYPE, tagName, this.markers]); | ||
} | ||
}, | ||
openListSection: function openListSection(tagName, attributes) { | ||
this.items = []; | ||
this.sections.push([MOBILEDOC_LIST_SECTION_TYPE, tagName, this.items, attributes]); | ||
if (attributes && attributes.length !== 0) { | ||
this.sections.push([MOBILEDOC_LIST_SECTION_TYPE, tagName, this.items, attributes]); | ||
} else { | ||
this.sections.push([MOBILEDOC_LIST_SECTION_TYPE, tagName, this.items]); | ||
} | ||
}, | ||
@@ -69,0 +77,0 @@ openListItem: function openListItem() { |
'use strict'; | ||
exports['default'] = '0.12.2'; | ||
exports['default'] = '0.12.3'; |
{ | ||
"name": "mobiledoc-kit", | ||
"version": "0.12.2", | ||
"version": "0.12.3", | ||
"description": "A toolkit for building WYSIWYG editors with Mobiledoc", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/bustle/mobiledoc-kit", |
@@ -72,7 +72,15 @@ import {visit, visitArray, compile} from '../../utils/compiler'; | ||
this.markers = []; | ||
this.sections.push([MOBILEDOC_MARKUP_SECTION_TYPE, tagName, this.markers, attributes]); | ||
if (attributes && attributes.length !== 0) { | ||
this.sections.push([MOBILEDOC_MARKUP_SECTION_TYPE, tagName, this.markers, attributes]); | ||
} else { | ||
this.sections.push([MOBILEDOC_MARKUP_SECTION_TYPE, tagName, this.markers]); | ||
} | ||
}, | ||
openListSection(tagName, attributes) { | ||
this.items = []; | ||
this.sections.push([MOBILEDOC_LIST_SECTION_TYPE, tagName, this.items, attributes]); | ||
if (attributes && attributes.length !== 0) { | ||
this.sections.push([MOBILEDOC_LIST_SECTION_TYPE, tagName, this.items, attributes]); | ||
} else { | ||
this.sections.push([MOBILEDOC_LIST_SECTION_TYPE, tagName, this.items]); | ||
} | ||
}, | ||
@@ -79,0 +87,0 @@ openListItem() { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
3548049
50474