fixed exception where comments could not be found

This commit is contained in:
Remy Sharp 2011-12-31 14:21:09 +00:00
parent 229d4f146b
commit 7e30780fe4
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ function compressCSS(css) {
}
function removeComments(element) {
if (!element || !element.childNodes) return;
var nodes = element.childNodes,
i = nodes.length;

View File

@ -1,6 +1,6 @@
{
"name": "inliner",
"version": "0.1.11",
"version": "0.1.13",
"description": "Utility to inline images, CSS and JavaScript for a web page - useful for mobile sites",
"homepage": "http://github.com/remy/inliner",
"main": "inliner",