From 744e3fa0f92e7bee1599a860cfec91d0af617df1 Mon Sep 17 00:00:00 2001 From: Michael Malone Date: Sat, 19 Mar 2016 11:38:18 +1300 Subject: [PATCH 1/2] Updated Readme update the readme to show that it _is_ an aurelia plugin, now --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 506d151..cdb520f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# Aurelia-Dragula is intended to be an [Aurelia](https://aurelia.io) plugin +# Aurelia-Dragula + +aurelia-dragula is an [Aurelia](https://aurelia.io) plugin which provides a simple (but not simplistic) library to add drag and drop functionality. Because of the way Aurelia works, I have decided to fork [Dragula](https://github.com/bevacqua/dragula) and make it a bit more friendly to the framework. From ab4b018a44e8600e9cde77fe6d3e51515041faf4 Mon Sep 17 00:00:00 2001 From: Michael Malone Date: Sat, 19 Mar 2016 11:52:17 +1300 Subject: [PATCH 2/2] Updated Readme add a note in Usage to tell people that aurelia works weird and we have to adapt --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index cdb520f..4600c68 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ import {Dragula} from 'aurelia-dragula'; let dragula = new Dragula(); ``` +Because of the way aurelia works, it is recommended that the `dragend` event is subscribed to and `cancel` is then called, doing the manipulation of the view-models in JavaScript and letting aurelia re-render the changes. This is not only recommended, but vital inside of a `repeat.for`. + ###Options `import {Options} from 'aurelia-dragula;`