makeCollapsible fix for jQuery 1.6.1
authorKrinkle <krinkle@users.mediawiki.org>
Tue, 14 Jun 2011 21:20:30 +0000 (21:20 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Tue, 14 Jun 2011 21:20:30 +0000 (21:20 +0000)
commit3345eee6ad18a378e4a330e12ed5d8992f8885c4
tree32b38458c267f0a10520802f41ff39a4424f3896
parent8ff593404cdbda09f3dfe65a7775f657cad08a65
makeCollapsible fix for jQuery 1.6.1
* Pre 1.6, jQuery returned an empty string for attributes that were not set. Although in a way that was wrong, it was the way it was. From jQuery documentation: "As of jQuery 1.6, the .attr() method returns <code>undefined</code> for attributes that have not been set." [1]
** Fixing makeCollapsible by removing empty-string checks and casting to boolean instead
* Wrapped a long line

[1] http://api.jquery.com/attr/

(jQuery 1.6.1 upgrade was in r89866)
resources/jquery/jquery.makeCollapsible.js