Ticket #2511 (closed bug: wontfix)
Attribute Selector Sometimes returns function instead of string
|Reported by:||Pete Michaud||Owned by:|
I'm working on an ASP .NET application, and I wanted to select all controls that post back, so I used this selector:
The idea is to trigger a "please wait" dialog while the page takes it's sweet time posting back.
The part that's broken is that because I'm looking for onclick, and the event itself is onclick, when it hits around line 1712:
|type == "~=") && z.indexOf(m) >= 0) not )|
1715 tmp.push( a );
z.indexOf breaks, because z is an anonymous function, instead of the string value of the "onclick" attribute. The anonymous function obviously doesn't have the indexOf method.