From eba133e1b50b4773f56d30a6658305b54efbe4f5 Mon Sep 17 00:00:00 2001 From: Earl Date: Mon, 30 Jul 2012 14:23:48 -0600 Subject: [PATCH] Added access to current/selected panel The variables already exist, adding them to the event arguments simplifies access, and improves performance (no need to look them up during the event handler) --- wijmo/jquery.wijmo.wijaccordion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wijmo/jquery.wijmo.wijaccordion.js b/wijmo/jquery.wijmo.wijaccordion.js index 19c1978..8dc9e10 100644 --- a/wijmo/jquery.wijmo.wijaccordion.js +++ b/wijmo/jquery.wijmo.wijaccordion.js @@ -359,7 +359,7 @@ amplify*/ return false; } if (!this._trigger("beforeSelectedIndexChanged", null, - { newIndex: newIndex, prevIndex: prevIndex })) { + { newIndex: newIndex, prevIndex: prevIndex, newContent: nextContent, prevContent: prevContent })) { return false; }