]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
fix: fix Typescript jQuery foundation method definition #11193 11274/head
authorNicolas Coden <nicolas@ncoden.fr>
Wed, 16 May 2018 21:03:38 +0000 (23:03 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Wed, 16 May 2018 21:03:38 +0000 (23:03 +0200)
commit5e540b7b9568874383ca551aa9e34d8c685ce007
tree89d5bcd2ce73af0158028d227f1be94c74ff216c
parentcac478cca952d96f4f80a3d20554757a154f3cf1
fix: fix Typescript jQuery foundation method definition #11193

Foundation public methods does not all take a jQuery element as first parameter. They can actually take anything and the jQuery interface does not allow to know by the method definition to which plugin the method belong (and what are its arguments types). So the only solution seems to accept anything.

See https://github.com/zurb/foundation-sites/pull/11199#discussion_r183766940
Closes https://github.com/zurb/foundation-sites/issues/11193
js/typescript/foundation.d.ts