create-element-basic
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -47,9 +47,4 @@ /*! | ||
function createElement(type, attr, contents) { | ||
var closing = emptyTags.filter(isClosingTag) | ||
var closing = emptyTags.indexOf(type) === -1 ? true : false | ||
function isClosingTag (val, idx, arr) { | ||
if (val === type) return false | ||
return true | ||
} | ||
return openTag(type, closing, attr) + (closing ? (contents || '') + closeTag(type) : '') | ||
@@ -56,0 +51,0 @@ } |
{ | ||
"name": "create-element-basic", | ||
"description": "HTML element string creation", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/akileez/create-element-basic", | ||
@@ -6,0 +6,0 @@ "author": { |
4009
44