Skip to content
Permalink
Browse files

Removed regex from function and split return into two lines.

  • Loading branch information...
arhea committed Jan 3, 2012
1 parent eef633e commit 3c4e40d8d770ac117969b2cb011ac3d7402a134a
Showing with 5 additions and 3 deletions.
  1. +5 −3 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", {

0 comments on commit 3c4e40d

Please sign in to comment.
You can’t perform that action at this time.