jquery.makeCollapsible: Use promise().done instead of when().then
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 18 Sep 2013 04:47:11 +0000 (06:47 +0200)
committerHelder.wiki <helder.wiki@gmail.com>
Wed, 18 Sep 2013 11:45:53 +0000 (11:45 +0000)
commit45e9c20ed1a1741354b727656670597559902a59
treee884b54fc42308790181039ab86f9ad42d66a348
parentc1389b0b38d3f692c46309a70d947a5c7c9658e1
jquery.makeCollapsible: Use promise().done instead of when().then

Follows up b340bd4f6b.

They both work, but in this case there is no need to use $.when
since there is only 1 promise. And there is no need for the
filtering proxy of Promise#then either, a straight done is enough.

 $.when( $foo ).then( callback )
 $.when( $foo ).done( callback )
 $foo.promise().done( callback )

Change-Id: I4df755a32c124481ca690078191a735d2e2b511a
resources/jquery/jquery.makeCollapsible.js