Opened 9 years ago
Closed 9 years ago
#14984 closed bug (notabug)
Getting 'length' is null or not an object While page loading
Reported by: | 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.
Only the most recent versions of jQuery are supported. Please ask for help on StackOverflow or our forums.