Side navigation
#14984 closed bug (notabug)
Opened April 10, 2014 02:36PM UTC
Closed April 10, 2014 02:39PM UTC
Getting 'length' is null or not an object While page loading
Reported by: | sundara_bellamkonda@uhc.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi Team,
I am using jquery.library.js version v1.4.4, i am getting jquery error like length is null or not an object in the below line length = object.length, in below function.
args is for internal usage only
each: function( object, callback, args ) {
var name, i = 0,
length = object.length,
isObj = length === undefined || jQuery.isFunction(object);
if ( args ) {
if ( isObj ) {
for ( name in object ) {
if ( callback.apply( object[ name ], args ) === false ) {
break;
}
}
} else {
for ( ; i < length; ) {
if ( callback.apply( object[ i++ ], args ) === false ) {
break;
}
}
}
A special, fast, case for the most common use of each
} else {
if ( isObj ) {
for ( name in object ) {
if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
break;
}
}
} else {
for ( var value = object[0];
i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}
}
}
Please help me, how can we fix this issue.
Attachments (0)
Change History (1)
Changed April 10, 2014 02:39PM UTC by comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
Only the most recent versions of jQuery are supported. Please ask for help on StackOverflow or our forums.