aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-01-25 20:44:55 -0500
committerTimmy Willison <timmywillisn@gmail.com>2013-01-30 20:36:58 -0500
commitf5110cdec0b0e7ee353fd55187e87a2648fe0eba (patch)
treefcb4697e72d4287c51ccfedeef8838cdf5876214
parenta5c33fe1f7872a20267ff69905561c8cc55fe3c1 (diff)
downloadjquery-f5110cdec0b0e7ee353fd55187e87a2648fe0eba.tar.gz
jquery-f5110cdec0b0e7ee353fd55187e87a2648fe0eba.zip
Minor updates. All parameters of an internal function are for internal use only.
-rw-r--r--src/data.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/data.js b/src/data.js
index 02cf90ba5..596341c6a 100644
--- a/src/data.js
+++ b/src/data.js
@@ -1,7 +1,7 @@
var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
rmultiDash = /([A-Z])/g;
-
-function internalData( elem, name, data, pvt /* Internal Use Only */ ){
+
+function internalData( elem, name, data, pvt ) {
if ( !jQuery.acceptData( elem ) ) {
return;
}
@@ -95,7 +95,7 @@ function internalData( elem, name, data, pvt /* Internal Use Only */ ){
return ret;
}
-function internalRemoveData( elem, name, pvt /* For internal use only */ ){
+function internalRemoveData( elem, name, pvt ) {
if ( !jQuery.acceptData( elem ) ) {
return;
}
@@ -205,18 +205,18 @@ jQuery.extend({
},
data: function( elem, name, data ) {
- return internalData( elem, name, data, false );
+ return internalData( elem, name, data );
},
removeData: function( elem, name ) {
- return internalRemoveData( elem, name, false );
+ return internalRemoveData( elem, name );
},
// For internal use only.
_data: function( elem, name, data ) {
return internalData( elem, name, data, true );
},
-
+
_removeData: function( elem, name ) {
return internalRemoveData( elem, name, true );
},
@@ -304,12 +304,12 @@ function dataAttr( elem, key, data ) {
if ( typeof data === "string" ) {
try {
data = data === "true" ? true :
- data === "false" ? false :
- data === "null" ? null :
- // Only convert to a number if it doesn't change the string
- +data + "" === data ? +data :
- rbrace.test( data ) ? jQuery.parseJSON( data ) :
- data;
+ data === "false" ? false :
+ data === "null" ? null :
+ // Only convert to a number if it doesn't change the string
+ +data + "" === data ? +data :
+ rbrace.test( data ) ? jQuery.parseJSON( data ) :
+ data;
} catch( e ) {}
// Make sure we set the data so it isn't changed later