From 8b26ca27c9d4c5de5dbe8eabd703e63c552048f6 Mon Sep 17 00:00:00 2001 From: Lebedev Konstantin Date: Mon, 22 Dec 2014 18:40:50 +0300 Subject: [PATCH] Update ng-sortable.js --- ng-sortable.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ng-sortable.js b/ng-sortable.js index a1d572e..f6ec09b 100644 --- a/ng-sortable.js +++ b/ng-sortable.js @@ -3,7 +3,7 @@ * @licence MIT */ angular.module('ng-sortable', []) - .constant('$version', '0.3.2') + .constant('$version', '0.3.3') .directive('ngSortable', ['$parse', function ($parse) { 'use strict'; @@ -17,6 +17,8 @@ angular.module('ng-sortable', []) (node.nodeValue.indexOf('ngRepeat:') !== -1) ); })[0]; + + // tests: http://jsbin.com/kosubutilo/1/edit?js,output ngRepeat = ngRepeat.nodeValue.match(/ngRepeat:\s*(?:\(.*?,\s*)?([^\s)]+)[\s)]+in\s+([^\s|]+)/); var itemExpr = $parse(ngRepeat[1]);