Merge pull request #152 from pine3ree/patch-1

use already fetched value
This commit is contained in:
Robbie Averill 2017-08-25 16:20:18 +12:00 committed by GitHub
commit 33f173d39b

View File

@ -5,7 +5,7 @@
var parentName=$(this).attr('name');
this.rewriteWidgetAreaAttributes();
var availableWidgets=$('#availableWidgets-'+$(this).attr('name')).children().each(function() {
var availableWidgets=$('#availableWidgets-'+parentName).children().each(function() {
// Don't run on comments, whitespace, etc
if($(this)[0].nodeType==1) {
// Gotta change their ID's because otherwise we get clashes between two tabs