[wp-trac] [WordPress Trac] #33021: Global javascript variables incorrectly defined

WordPress Trac noreply at wordpress.org
Fri Jul 17 20:15:39 UTC 2015


#33021: Global javascript variables incorrectly defined
------------------------------+------------------------------
 Reporter:  johnjamesjacoby   |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  javascript
------------------------------+------------------------------

Comment (by jorbin):

 According to the jshint documentation,
 [http://jshint.com/docs/options/#globals globals] is actually the correct
 term.  I know we are not consistant between them right now, but I don't
 think the code churn is worth it to clean it up.

 As far as `_` and `Backbone`, both of those are declared as globals for
 the entire project in
 [https://core.trac.wordpress.org/browser/trunk/.jshintrc#L18 .jshintrc].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33021#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list