ractivejs / Ractive-decorators-sortable

Drag and drop items to sort them
http://ractivejs.github.io/Ractive-decorators-sortable/
MIT License
15 stars 21 forks source link

exports the decorator #15

Closed ArtskydJ closed 9 years ago

ArtskydJ commented 9 years ago

So I can do something like:

var ExtendedRactive = Ractive.extend({
    decorators: require('ractive-decorators-sortable')
})

Code should be fully backwards compatible.

Rich-Harris commented 9 years ago

thanks! This is in line with some stuff we've been discussing on the mailing list so will probably happen to all the plugins soon.

ArtskydJ commented 9 years ago

Cool, I like the browserify-friendly approach to plugins.

(@Rich-Harris, any chance of releasing to npm? :grinning:)