Skip to content

Commit bc0f1e0

Browse files
author
scottjehl
committed
better var names
1 parent aa0228d commit bc0f1e0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/jquery.mobile.core.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@
112112
var jqd = $.fn.data;
113113

114114
$.fn.data = function( prop, value ){
115-
var pu = prop === undefined,
116-
vu = value === undefined;
115+
var pUndef = prop === undefined,
116+
vUndef = value === undefined;
117117

118-
if( pu || vu ){
118+
if( pUndef || vUndef ){
119119
var ret,
120120
nsret;
121121
//if no args are passed, a data hash is expected. Remap non-namespaced props
122-
if( pu ){
122+
if( pUndef ){
123123
ret = jqd.call( this );
124124
$.each( ret, function( i ){
125125
var nsIndex = i.indexOf( $.mobile.ns );
@@ -129,7 +129,7 @@
129129
});
130130
}
131131
//if it's a prop get, try namepaced version if prop is undefined
132-
else if( vu ){
132+
else if( vUndef ){
133133
ret = jqd.call( this, prop );
134134
if( ret === undefined ){
135135
nsret = jqd.call( this, $.mobile.ns + prop );

0 commit comments

Comments
 (0)