aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAlex Rhea <alex.rhea@gmail.com>2012-01-03 13:18:13 -0500
committerAlex Rhea <alex.rhea@gmail.com>2012-01-03 13:18:13 -0500
commit3c4e40d8d770ac117969b2cb011ac3d7402a134a (patch)
tree434575f6612a2bdb6cb125396f5e17f1d51bd181 /ui
parenteef633e32a20ad93355060a8eef4b2129cf0bc5c (diff)
downloadjquery-ui-3c4e40d8d770ac117969b2cb011ac3d7402a134a.tar.gz
jquery-ui-3c4e40d8d770ac117969b2cb011ac3d7402a134a.zip
Removed regex from function and split return into two lines.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.tabs.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 3e022af4a..0429363f2 100644
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -13,17 +13,19 @@
*/
(function( $, undefined ) {
-var tabId = 0;
+var tabId = 0,
+ rhash = /#.*$/;
+
function getNextTabId() {
return ++tabId;
}
var isLocal = function( anchor ) {
- var rhash = /#.*$/;
// clone the node to work around IE 6 not normalizing the href property
// if it's manually set, i.e., a.href = "#foo" kills the normalization
anchor = anchor.cloneNode( false );
- return anchor.hash.length > 1 && anchor.href.replace( rhash, "" ) === location.href.replace( rhash, "" );
+ return anchor.hash.length > 1 &&
+ anchor.href.replace( rhash, "" ) === location.href.replace( rhash, "" );
};
$.widget( "ui.tabs", {