contao-utils-bundle
Advanced tools
Comparing version 1.0.2 to 1.0.3
module.exports = { | ||
getTextWithoutChildren: function(element, notrim) { | ||
let result = element.clone().children().remove().text(); | ||
let result = element.clone(); | ||
result.children().remove(); | ||
if (typeof notrim !== 'undefined' && notrim === true) { | ||
return result; | ||
return result.text(); | ||
} else { | ||
return result.trim(); | ||
return result.text().trim(); | ||
} | ||
}, | ||
}; |
{ | ||
"name": "contao-utils-bundle", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "This package contains the frontend assets of the composer bundle heimrichhannot/contao-utils-bundle.", | ||
@@ -5,0 +5,0 @@ "main": "js/utils-bundle", |
5354
152