From 8c06677b2748af81f6a63d02cd57710db6f65b5a Mon Sep 17 00:00:00 2001 From: guilhermeaiolfi Date: Mon, 25 May 2015 22:47:55 -0300 Subject: [PATCH] Update decorator to ractive 0.7+ ```keypath```s are not string anymore. They are objects. --- 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( '.' );