Javascript/Jquery commenting causing errors in IE -



Javascript/Jquery commenting causing errors in IE -

so post not much of "please help me prepare it" post much "why changing create work?". had javascript/jquery written working in firefox , chrome, ie threw errors.

i not figure out helpful posts users here @ stackoverflow. stumbled upon reply (as seem find myself doing lot coding).

i doing rigorous style of commenting taught me 1 of computer science professors function have commenting such this:

//@ describe function //@ params: param1 - function, param2 - function //@ etc....

so foolishly threw javascript find out ie did not care much @ all. when removed @ symbols code worked perfectly.

so question why caused errors in ie? shouldn't whatever follows '//' comments not matter?

you might thinking of docblock commenting, want wrap in block comment syntax:

/** * function * @param <string> $str string * @param <array> $arr array * @return <bool> true if string in array, false if not */

i can see ie beingness stupid. odds if there explanation why //@ didn't work, it'll stupid one, , odds little percentage of able recreate on our version of ie.

ie browser knowledge looks @ conditional comments, can see them having different comment parser other browsers conflict otherwise proper code.

javascript jquery internet-explorer commenting

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -