Add a hook for collapsible content
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Mon, 22 Feb 2016 21:04:50 +0000 (22:04 +0100)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Fri, 25 Mar 2016 21:54:50 +0000 (22:54 +0100)
commit516f8cad49e82b267a498cfdf7f157454b130f23
tree15a1ba5a75fa90e5eb8b8d5a1806cd2d000f7f95
parentd651abc99d14b4cf6a814321d86c23a2eedbc37b
Add a hook for collapsible content

This might allow a script to intervene after the inital setup and to
process custom state like for instance; autocollapse, inner/outercollapse.

I also note that the hook is deliberately AFTER the changes to the DOM,
since hooks can be executed after they have been fired, so predictable
DOM is required, which is only after the makeCollapsible setup.

Expose expand/collapse/toggle functions using element data.

Bug: T72762
Change-Id: I099c533740bbe15a1d65c8821bad8bb8395f3806
resources/src/jquery/jquery.makeCollapsible.js