Changes between Initial Version and Version 1 of Ticket #10689, comment 8


Ignore:
Timestamp:
Aug 22, 2013, 7:34:50 AM (11 years ago)
Author:
Piotrek Koszuliński
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10689, comment 8

    initial v1  
    11For future reference - why this was an incorrect duck typing:
    22
     3{{{
    34    if ( !form.$.submit.nodeName && !form.$.submit.length )
     5}}}
    46
    57This 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`.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy