Skip to content
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

Additional methods #15

Closed
Rich-Harris opened this issue Nov 21, 2016 · 4 comments
Closed

Additional methods #15

Rich-Harris opened this issue Nov 21, 2016 · 4 comments

Comments

@Rich-Harris
Copy link
Member

Convenience methods could be added like so – easy enough for people who need them, but zero cost for people who don't:

<script>
  import { animate, toggle, add, subtract, push, pop } from 'svelte/extras/methods.js';

  export default {
    methods: { animate, toggle, add, subtract, push, pop }
  };
</script>
@kyleshevlin
Copy link

I know that you were just making an example, but would those be a list of methods you'd like implemented for Svelte? I ask because this could be a good thread to list those additional helper methods that would be Svelte specific (or where an implementation of a native function would benefit from having some Svelte optimizations), and perhaps we could start working on some of the most requested helpers.

@Ryuno-Ki
Copy link

Ryuno-Ki commented Dec 6, 2016

It's not clear to me, what those "convenient functions" shall do.

@bestguy
Copy link

bestguy commented Dec 31, 2016

The list Rich used looks like what was available in RactiveJS:
http://docs.ractivejs.org/latest/ractive-add
(All are listed sidebar)

@Rich-Harris
Copy link
Member Author

Will close this as we now have https://github.com/sveltejs/svelte-extras/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants