Ticket #5742: 5742.patch

File 5742.patch, 777 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/scayt/plugin.js

     
    261261                                // Making the comparison based on content without SCAYT word markers.
    262262                                if ( scayt_instance && plugin.isScaytReady( this.editor ) )
    263263                                {
    264                                         this.contents = scayt_instance.reset( thisContents );
    265                                         otherImage.contents = scayt_instance.reset( otherContents );
     264                                        // scayt::reset might return value undefined. (#5742)
     265                                        this.contents = scayt_instance.reset( thisContents ) || '';
     266                                        otherImage.contents = scayt_instance.reset( otherContents ) || '';
    266267                                }
    267268                               
    268269                                var retval = org.apply( this, arguments );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy