Closed Florian-R closed 8 years ago
I have added this behaviour because of the test. I do not think anyone uses it, and would rather drop another jQuery check from Chaplin core. LGTM.
I do not think anyone uses it, and would rather drop another jQuery check from Chaplin core.
FWIW, I've tried in some branch (https://github.com/Florian-R/chaplin/commit/26d42db3dbbde2070a0aa686c9796ae6dc1c2189) to remove the branching in attach
, but it demands to recreate so many methods from jQuery with potential differences than I doubt it worth doing it.
Problem is that the actual behaviour makes code designed to work with jQuery breaks without and vice-versa.
No idea on how to fix this.
We should not recreate this methods, they are part of DOM API LS. Users should use polyfills. However, this functionality is not documented and Chaplin is used primarily in legacy apps with no cutting edge standards in mind.
Otherwise, I would check for methods, but it would negatively affect performance (every key in options should be looked up in Element.prototype
). And yes, there are minor differences, but if user installed the polyfill he should be aware.
@paulmillr, maybe we should support DOM4 stuff?
@paulmillr Friendly ping
I don't think the IE versions we support can use dom4
This branch don't use dom4 at all. It just revert an incorrect behaviour.
Thanks!
@paulmillr If you have some time, could you publish a new release? Thanks!
👍
done
When a view as an option who is named like a jQuery method (for exemple filter),
containerMethod
take this value and the original value forcontainerMethod
is lost.This branch of the code was introduced during #877, @shvaikalesh can you expand on it? I assume this is for :
but I've never seen this options in the docs, and test are still
greenwithout this branch of code.Edit: Hadn't seen this failure locally, investigating.