[wp-trac] [WordPress Trac] #26034: jshint shouldn't throw errors:wp-admin/js/link.js
WordPress Trac
noreply at wordpress.org
Thu Nov 14 22:06:35 UTC 2013
#26034: jshint shouldn't throw errors:wp-admin/js/link.js
--------------------------+-----------------------------
Reporter: seanchayes | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build Tools | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
Resolving JSHint errors as shown:
{{{
Linting src/wp-admin/js/link.js ...ERROR
[L25:C103] W033: Missing semicolon.
newCat = $('#newcat').one( 'focus', function() { $(this).val( ''
).removeClass( 'form-input-tip' ) } );
Linting src/wp-admin/js/link.js ...ERROR
[L7:C5] W117: 'postboxes' is not defined.
postboxes.add_postbox_toggles('link');
Linting src/wp-admin/js/link.js ...ERROR
[L16:C13] W117: 'deleteUserSetting' is not defined.
deleteUserSetting('cats');
Linting src/wp-admin/js/link.js ...ERROR
[L18:C13] W117: 'setUserSetting' is not defined.
setUserSetting('cats','pop');
Linting src/wp-admin/js/link.js ...ERROR
[L21:C10] W117: 'getUserSetting' is not defined.
if ( getUserSetting('cats') )
Linting src/wp-admin/js/link.js ...ERROR
[L54:C53] W117: 'deleteUserSetting' is not defined.
$('a[href="#categories-
all"]').click(function(){deleteUserSetting('cats');});
Linting src/wp-admin/js/link.js ...ERROR
[L55:C53] W117: 'setUserSetting' is not defined.
$('a[href="#categories-
pop"]').click(function(){setUserSetting('cats','pop');});
Linting src/wp-admin/js/link.js ...ERROR
[L56:C19] W117: 'getUserSetting' is not defined.
if ( 'pop' == getUserSetting('cats') )
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26034>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list