Commit Graph

6 Commits

Author SHA1 Message Date
Lance Willett
c437b2d508 Twenty Fourteen: standardize comment blocks and jQuery function wrapper calls in JavaScript files. Props seanchayes for initial patch, see #25946.
Built from https://develop.svn.wordpress.org/trunk@26332


git-svn-id: http://core.svn.wordpress.org/trunk@26234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-22 22:42:09 +00:00
Andrew Nacin
c43e93d935 Fix spaces/tabs in Twenty Fourteen JS, allowing JSHint to run clean for these files.
props dougwollison.
fixes #26031, #26032.

Built from https://develop.svn.wordpress.org/trunk@26261


git-svn-id: http://core.svn.wordpress.org/trunk@26167 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-19 03:49:09 +00:00
Lance Willett
a1036ac9f0 Twenty Fourteen: changes to JavaScript files to pass jshint, props jorbin. Fixes #25908 #25909 #25910.
* Add global variable flags to top of JS files.
 * Group variable declarations correctly.
Built from https://develop.svn.wordpress.org/trunk@26084


git-svn-id: http://core.svn.wordpress.org/trunk@26004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-11 17:27:11 +00:00
Lance Willett
8e0733a6c7 Twenty Fourteen: allow slider "Previous" and "Next" labels to be translated, props michahwave. Fixes #25897.
Built from https://develop.svn.wordpress.org/trunk@26071


git-svn-id: http://core.svn.wordpress.org/trunk@25991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-09 23:28:09 +00:00
Lance Willett
9d0e238255 Twenty Fourteen: JavaScript fixes after running jshint, see r25960:
* Enforce `===` instead of `==`
 * Fix confusing use of `!`
 * Remove unused variables like `calcNext`, defined but never used
 * Proper use of braces
 * Move functions out of if/else statements
 * Document unknown functions as Microsoft-specific
Built from https://develop.svn.wordpress.org/trunk@25995


git-svn-id: http://core.svn.wordpress.org/trunk@25928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-30 18:53:10 +00:00
Andrew Nacin
d0cfa40983 Add jshintrc to qunit.
props jorbin.
see #25187.

Built from https://develop.svn.wordpress.org/trunk@25992


git-svn-id: http://core.svn.wordpress.org/trunk@25925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-30 14:39:10 +00:00