Hello,
I am trying to register two different window creation functions in OOjs UI
but somehow they conflict with one another.
The code is in [1] and you can use it like [2]. If you go to a page with
sections (e.g. my talk page) you should see new links in the section
heading called "add comment" and "close".
The first time you click on each, the respective dialog will be shown. But
whichever you click on first will only work once! So for instance, if you
first click on "add comment" and then cancel the dialog, then click on
"close" and cancel, now only "close" links will work (all of them) and
none
of the "add comment" links will show a dialog anymore. No error is logged
in the console either.
I am pretty sure it has to do with the way I am defining my objects, but I
am not able to figure out what I am doing wrong. Please advise.
Thanks,
Huji
[1]
https://en.wikipedia.org/wiki/User:Huji/close.js
[2]
https://en.wikipedia.org/wiki/User:Huji/vector.js