JavaScript file Not Minifying Correctly -
i'm trying minify javascript file website part of code in snippet causing errors when minifies.
//do not hide if click on label object associated select
do need part of code or important command code. if need it, need add in order minify correctly?
/* hide open selects */ var jqtransformhideselect = function(otarget){ var ulvisible = $('.jqtransformselectwrapper ul:visible'); ulvisible.each(function(){ var oselect = $(this).parents(".jqtransformselectwrapper:first").find("select").get(0); //do not hide if click on label object associated select if( !(otarget && oselect.olabel && oselect.olabel.get(0) == otarget.get(0)) ){$(this).hide();} }); };
it's comment. can remove it. check out this article on javascript comments.
also, can lint see if there issues. linted you:
make sure you've included jquery , stuff.
Comments
Post a Comment