Side navigation
#8119 closed bug (invalid)
Opened February 01, 2011 12:22PM UTC
Closed February 01, 2011 12:27PM UTC
Last modified February 01, 2011 09:35PM UTC
Live event sometimes causes error
Reported by: | wheresrhys@gmail.com | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | event | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Adding the following lines to my page
$("#cboxWrapper a.close").live(function () { // any code });
causes the following error
(types || "").split is not a function [Break On This Error] types = (types || "").split(" ");
This is after the successful addition of other live events immediately preceding these lines
On further investigation, firebug tells me that types is a function, not a string.
I can email a copy of the entire page if needed (NB the name of the jQuery file included is 1.4.4-min, but the code is 1.5 - just haven't got round to renaming yet)
Attachments (0)
Change History (3)
Changed February 01, 2011 12:25PM UTC by comment:1
Changed February 01, 2011 12:27PM UTC by comment:2
component: | unfiled → event |
---|---|
priority: | undecided → high |
resolution: | → invalid |
status: | new → closed |
Thanks for taking the time to contribute to the jQuery project by writing a bug report.
After checking your bug report I came to the conclusion that this isn't a bug. If you check the .live() documentation for the supported method signatures you will see that in every signature there is a mandatory eventType
parameter of type string as the first parameter.
So your sample is simply invalid, as it's missing the first eventType
parameter.
Changed February 01, 2011 09:35PM UTC by comment:3
priority: | high → low |
---|
Just realised it was a stupid mistake of my own - please close this bug