True isn't true in Javascript.

Apparently True isn't true in javascript. They fiddle around like crazy with
loose typing (causing all kinds of problems) but vars are case sensitive?!
This commit is contained in:
Mikael Nordfeldth 2015-02-05 12:13:01 +01:00
parent f7548ed7e9
commit 1c478768ad

View File

@ -1383,7 +1383,7 @@ var SN = { // StatusNet
* @param {String} tag
*/
switchInputFormTab: function (tag, setFocus) {
if (typeof setFocus === 'undefined') { setFocus = True; }
if (typeof setFocus === 'undefined') { setFocus = true; }
// The one that's current isn't current anymore
$('.input_form_nav_tab.current').removeClass('current');
if (tag != null) {