Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1376 closed defect (fixed)

[patch][cla] Webkit treats NodeLists as functions

Reported by: mwubben@… Owned by: dylan
Priority: high Milestone:
Component: Core Version: 0.3
Keywords: Cc:
Blocked By: Blocking:

Description

Webkit treats a NodeList? as a function. This breaks dojo.lang.isFunction(), and any method which depends on the NodeList? not being a function (like dojo.lang.isArrayLike and subsequently dojo.lang.find). See also http://bugzilla.opendarwin.org/show_bug.cgi?id=10647

A solution is to check if object.toString() contains NodeList? in isFunction().

Change History (6)

comment:1 Changed 13 years ago by dylan

Owner: changed from anonymous to dylan
Status: newassigned
Summary: Webkit treats NodeLists as functions[patch][cla] Webkit treats NodeLists as functions

comment:2 Changed 13 years ago by dylan

Resolution: fixed
Status: assignedclosed

(In [5567]) fixes #1376, Safari treats NodeList? as a function, which is bad

comment:3 Changed 13 years ago by dylan

Resolution: fixed
Status: closedreopened

fix breaks things, reopening

comment:5 Changed 13 years ago by dylan

Resolution: fixed
Status: reopenedclosed

(In [5787]) fixes #1376, suggestion by mark wubben, confirmed by tk

comment:6 Changed 12 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.