Skip to content
This repository
Browse code

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.
  • Loading branch information...
commit a2979f0551832e7b33b7ea6be9c96ce9bec3387c 1 parent 8926741
Sean Harvey authored April 02, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  admin/javascript/LeftAndMain.js
4  admin/javascript/LeftAndMain.js
@@ -224,7 +224,7 @@ jQuery.noConflict();
224 224
 						var layoutClasses = ['east', 'west', 'center', 'north', 'south'];
225 225
 						var elemClasses = contentEl.attr('class');
226 226
 						
227  
-						var origLayoutClasses = '';
  227
+						var origLayoutClasses = [];
228 228
 						if(elemClasses) {
229 229
 							origLayoutClasses = $.grep(
230 230
 								elemClasses.split(' '),
@@ -557,4 +557,4 @@ var statusMessage = function(text, type) {
557 557
 
558 558
 var errorMessage = function(text) {
559 559
 	jQuery.noticeAdd({text: text, type: 'error'});
560  
-};
  560
+};

0 notes on commit a2979f0

Please sign in to comment.
Something went wrong with that request. Please try again.