-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate v0 custom element reactions #13
Comments
You should update your code. Im beyond that already.
… On 29 May 2017, at 14:03, snuggs ***@***.***> wrote:
If we are going to migrate to v1 registration I feel we can deprecate the hooks for the v0 callbacks (i.e. attached / detached) . Will make slim a touch slimmer. ;-) <3
Let me know if you need me to PR this.
bfcb464 <bfcb464>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#13>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABCMK4i_9-ywOH6M3pmClqmOXSG8yLcuks5r-qXtgaJpZM4NpLZz>.
|
Not certain you understand what I mean @eavichay. For example: v0 callback |
Currently it should support V1 with fallback to V0 if someone decides to use document.registerElement. If you think it should be dropped completely - your'e welcome but It smells like a breaking change so as long as it's not an issue, I'd prefer keeping it, at least until version 3 it out. Currently it looks like version 3 has real performance issues and good chances i'll drop it completely, though the code is half-size... WDYT? |
🤔 great question. However I feel the current API is great and should encourage NOT having the author define the custom element themselves. I feel this is one of the main reasons to even use slim.js.Let someone else worry about the movement of the spec. Like i said the thing i learned best from ruby is enforced conventions often remove tons of edge cases of configuration. #FreeJewelry 💍 💎 . Let's think on it a bit and make a decision later today/tomorrow. To your point we don't want to break anything. On the other side of the coin it won't be missed if no one is encouraged to use the feature. A win win win for your future self IMHO @eavichay |
As you said yesterday. Can remove an extra function call on the call stack... :-) @eavichay |
What if someone is not using onAdded/onRemoved but is overriding attachedCallback and calling super? It will not execute at all. It's a breaking change. I am all for this change, but I think it could wait for version 3, once the engine is rewritten. |
Well @eavichay as you mentioned in the comments it's recommended to not override. Just move that comment to the README et voila (as they say in Paris 🇫🇷 ) https://github.com/eavichay/slim.js/blob/master/src/Slim.js#L734 |
viola |
join the gitter channel please |
As an addendum the one thing we lose from moving to customElementRegistry we begin to lose the ability to extend from derivatives of |
I agree. It should be deprecated. |
Ok will work on this this weekend @eavichay |
bfcb464
If we are going to migrate to v1 registration I feel we can deprecate the hooks for the v0 callbacks (i.e. attached / detached) . Will make slim a touch slimmer. ;-) <3
Let me know if you need me to PR this.
The text was updated successfully, but these errors were encountered: