Changes between Initial Version and Version 1 of Ticket #10689, comment 8
- Timestamp:
- Aug 22, 2013, 7:34:50 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10689, comment 8
initial v1 1 1 For future reference - why this was an incorrect duck typing: 2 2 3 {{{ 3 4 if ( !form.$.submit.nodeName && !form.$.submit.length ) 5 }}} 4 6 5 7 This works correctly for the first editor - it checks whether submit property of a form is an element or HTML collection (of inputs with `name=submit`). However, it fails for the second one because overridden submit property now has a `length` property, because function has it too (it means the number of arguments listed in fn def). So the second editor cannot override `form.$submit`.