From 13ef39b7ae57c5c66773e6c209c6205f8f019dfc Mon Sep 17 00:00:00 2001 From: Jouni Suorsa Date: Fri, 27 Nov 2015 13:16:14 +0200 Subject: [PATCH] Fixed bc-bootstrap-collection.js .size() deprecations. --- Resources/js/bc-bootstrap-collection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/js/bc-bootstrap-collection.js b/Resources/js/bc-bootstrap-collection.js index 4989529..4357522 100644 --- a/Resources/js/bc-bootstrap-collection.js +++ b/Resources/js/bc-bootstrap-collection.js @@ -34,7 +34,7 @@ var collection = $('#'+selector), list = collection.find('> ul'), - count = list.find('> li').size() + count = list.find('> li').length ; var newWidget = collection.attr('data-prototype'); @@ -43,7 +43,7 @@ // If it does, increase the count by one and try again var newName = newWidget.match(/id="(.*?)"/); var re = new RegExp(prototypeName, "g"); - while ($('#' + newName[1].replace(re, count)).size() > 0) { + while ($('#' + newName[1].replace(re, count)).length > 0) { count++; } newWidget = newWidget.replace(re, count);