I am using twitter bootstrap rails with jQuery 1.7
When I load my project it works fine, except for an error in jQuery file. I am assuming this is is affecting my highcharts and the graphs are not displayed.
However can somebody help me resolve this issue:
This is from line 633 inside jquery.extend() function:
632. var name, i = 0,
633. length = object.length,
634. isObj = length === undefined || jQuery.isFunction( object );
Here is the error:
TypeError: ‘undefined’ is not an object (evaluating ‘undefined.length’)
Can somebody please help?
Best,
Figured the problem out. It was a minor fault in my JS handling. I was not checking for existence of an array created out of a div at my front end.
changed the code from
$.each($myArr, function(key,value){
.
.
.
});
to
if($myArr){
$.each($myArr, function(key,value){
.
.
.
});
}
This was a common JS file that was loaded to a number of views. Changing this worked! 🙂