BUGFIX Ensure that origLayoutClasses is always an array when considered

empty, as join() will be called later and causes a JS error on an empty
string.
This commit is contained in:
Sean Harvey 2012-04-02 14:29:02 +12:00
parent 89267419d4
commit a2979f0551

View File

@ -224,7 +224,7 @@ jQuery.noConflict();
var layoutClasses = ['east', 'west', 'center', 'north', 'south'];
var elemClasses = contentEl.attr('class');
var origLayoutClasses = '';
var origLayoutClasses = [];
if(elemClasses) {
origLayoutClasses = $.grep(
elemClasses.split(' '),