diff --git a/src/directives/array.js b/src/directives/array.js index a748ee841..6263a9619 100644 --- a/src/directives/array.js +++ b/src/directives/array.js @@ -170,7 +170,7 @@ angular.module('schemaForm').directive('sfArray', ['sfSelect', 'schemaForm', 'sf // Apparently the fastest way to clear an array, readable too. // http://jsperf.com/array-destroy/32 while (arr.length > 0) { - arr.shift(); + arr.pop(); } form.titleMap.forEach(function(item, index) {