Side navigation
#5064 closed bug (invalid)
Opened August 17, 2009 07:32PM UTC
Closed August 18, 2009 12:09AM UTC
G.replace throws an exception
Reported by: | dnlstffrd | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.2 |
Component: | core | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In jquery-1.3.2.min.js, the following line throws an exception for me:
G = G.replace(/-([a-z])/ig, function(M, N) { return N.toUpperCase() });
I'd recommend adding in a check like if(typeof(G) == 'string') or something to make sure this doesn't happen.
Attachments (0)
Change History (1)
Changed August 18, 2009 12:09AM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
That error is from the minimized jQuery. Most likely it is due to bad input being passed to jQuery from the code on the page or from a plugin. Please reopen this ticket if you can create a test case that reproduces the problem and it seems to be due to a jQuery bug.