Opened 11 years ago
Closed 11 years ago
#26029 closed defect (bug) (fixed)
jshint shouldn't throw errors: wp-admin/js/wp-fullscreen.js
Reported by: | dougwollison | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description
Patch to come
Attachments (4)
Change History (9)
#2
@
11 years ago
@dougwollison your patches seem to have used basic jshint rather than grunt jshint:core --file=wp-fullscreen.js
as instructed in the make/core post. The grunt version ignores eqeqeq
and curly
options for now, since there were too many of those errors to get in for this round.
I've attached a patch that ignores eqeqeq
and curly
errors. Also note that the file settles on tinymce
rather than tinyMCE
as the preferred global namespace in accordance with their docs.
#3
@
11 years ago
I have patched and tested 26029.4.diff and 26029.2.diff. Both appear to work fine to me.
On one hand I can see the need to apply these broad patches a little at a time and not worrying about everything now but then part of me also things if that patch file exists and seems okay why not commit now rather than deferring and doing it later.
UPDATE: The 26029.4.diff may be the better one to use as the other patch I tested leaves 2 unresolved errors.
Initial changes: spacing, braces, equals, keys fixed and globals declared.