From 75ce32083842a795607981b533fa85cfa2b7356e Mon Sep 17 00:00:00 2001 From: Tim Tucker Date: Fri, 31 Aug 2012 17:31:00 -0300 Subject: [PATCH] Update media/src/core/core.constructor.js Allow for adding / removing an arbitrary number of stripe rows --- media/src/core/core.constructor.js | 48 +++++++++++------------------- 1 file changed, 17 insertions(+), 31 deletions(-) diff --git a/media/src/core/core.constructor.js b/media/src/core/core.constructor.js index beb1aac1..8af48d54 100644 --- a/media/src/core/core.constructor.js +++ b/media/src/core/core.constructor.js @@ -1,4 +1,3 @@ - var i=0, iLen, j, jLen, k, kLen; var sId = this.getAttribute( 'id' ); var bInitHandedOff = false; @@ -240,42 +239,29 @@ if ( oInit.asStripeClasses === null ) } /* Remove row stripe classes if they are already on the table row */ -var bStripeRemove = false; -var anRows = $(this).children('tbody').children('tr'); -for ( i=0, iLen=oSettings.asStripeClasses.length ; i