From e67660ad429817cbe9be0a12ae6904a0b30a733f Mon Sep 17 00:00:00 2001 From: jmellicker Date: Sun, 13 Dec 2015 18:44:21 -0800 Subject: [PATCH] I had to make these changes to make this work... merge if desired --- src/Ractive-decorators-sortable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ractive-decorators-sortable.js b/src/Ractive-decorators-sortable.js index b7d5f25..43a66a7 100644 --- a/src/Ractive-decorators-sortable.js +++ b/src/Ractive-decorators-sortable.js @@ -126,7 +126,7 @@ var sortableDecorator = (function ( global, factory ) { dragstartHandler = function ( event ) { var storage = this._ractive, lastDotIndex; - sourceKeypath = storage.keypath; + sourceKeypath = storage.keypath.str; // this decorator only works with array members! lastDotIndex = sourceKeypath.lastIndexOf( '.' ); @@ -156,7 +156,7 @@ var sortableDecorator = (function ( global, factory ) { return; } - targetKeypath = this._ractive.keypath; + targetKeypath = this._ractive.keypath.str; // this decorator only works with array members! lastDotIndex = targetKeypath.lastIndexOf( '.' );