Strip out the whitespace without errors

60 Views Asked by At

My first step of the minify is stripping out whitespaces, but it already gives an error unexpected identifier.

<script>
function initializePonzo() {
    bindNavigation();
}

function createDiv(parent) {
    var newItem = $("<div></div>").attr("id", divname).appendTo("#" + parent);
    $(newItem).attr("data-type", typeofcontent);
    $(newItem).addClass(typeofcontent);
}
</script>
0

There are 0 best solutions below