[wp-trac] [WordPress Trac] #25994: jshint shouldn't throw errors: wp-admin/js/post.js

WordPress Trac noreply at wordpress.org
Fri Nov 15 05:33:52 UTC 2013


#25994: jshint shouldn't throw errors: wp-admin/js/post.js
--------------------------+------------------
 Reporter:  atimmer       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.8
Component:  Build Tools   |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------
Changes (by nacin):

 * milestone:  Awaiting Review => 3.8


Comment:

 Basically, functions shouldn't be defined within blocks because weird
 behavior can occur based on the JS interpreter. Best thing to do is use a
 function expression, which is fine.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25994#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list