Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1083 closed bug (invalid)

Uncaught Exception

Reported by: trucex Owned by:
Priority: minor Milestone: 1.1.3
Component: core Version: 1.1.2
Keywords: Cc:
Blocked by: Blocking:

Description

I don't really know enough about JavaScript to debug what this really is saying, but I know that jquery is supposed to suppress all errors right now and it missed this one, so I thought I'd send it on over.

Error: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: [truncated]/jquery.js :: anonymous :: line 1" data: no] Source File: [truncated]/jquery.js Line: 1

It seems that it's linked to this code somehow:

$(document).ready(function(){

$(window).scroll(updateBox());

});

The function it calls has no arguments.

Change History (1)

comment:1 Changed 13 years ago by john

Resolution: invalid
Status: newclosed

You have to format your code like this:

  $(window).scroll( updateBox );

In your code you're calling the function too early, instead you need to pass in a function reference, like above.

Note: See TracTickets for help on using tickets.