Changes between Version 1 and Version 2 of Ticket #11627, comment 7


Ignore:
Timestamp:
Mar 18, 2014, 9:15:10 PM (10 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11627, comment 7

    v1 v2  
    22> I suspect the new issue is caused by enableFolding being called on the same object more than once. Which is probably a bug with enableFolding, though I'm sure there's a workaround.
    33
    4 `enableFolding` adds an anchor to each link (`no1`, `no2`, ...) so it wasn't designed to be called more than once on a page. I tried a few different ways to work around this, eventually setting on [https://github.com/rjollos/trachacks/commit/362dac98efd70b5aaee55ca8dfa57dde1733a62e this change].
     4`enableFolding` adds an anchor to each link (`no1`, `no2`, ...) so it is clear that it wasn't designed to be called more than once on a page.
     5
     6I tried a few different ways to work around the issue that `enableFolding` can't be called more than once on a page, eventually setting on [https://github.com/rjollos/trachacks/commit/362dac98efd70b5aaee55ca8dfa57dde1733a62e this change].
    57
    68If the other Trac developers agree, I might add the feature to Trac in a forthcoming release (albeit in a different form that CollapsiblePlugin, instead using !WikiProcessor arguments).