Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3523

ZK WPD ERROR , Object doesn't support property or method 'apply' in 7.0.8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • None
    • 7.0.8
    • Container, ZK Client Engine
    • Security Level: Jimmy
    • IE11

      problem description

      http://zkfiddle.org/sample/hne4jr/5-Another-new-ZK-fiddle

      Please Check above URL in Ie. Go to Internet Explorer 11. Then go to tools>internet option>advanced tab>enable script debugging.Then run above fiddle.

      When I am trying to drag a non-drag gable list item in list box its showing that Object doesn't support property or method 'apply', File: zk.wpd, Line: 9, Column: 54118. There is only showing error in ZK.WPD file which is internal JS of ZK. in version 7.0.5.1 the error is not showing. But in 7.0.8 its showing. That is a script error . when i debug this using IE-11 developer tool the error is showing like Object doesn't support property or method 'apply', in line 9

      steps to reproduce

      1. run the attached zul with IE11
      2. open the developer tool
      3. type 'test' in the textbox
      4. double-click the text in the textbox

      current result

      console shows the error:

      Object doesn't support property or method 'apply'
      zk.wpd (5161,6)

      corresponding code:

      ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
      							.apply( matched.elem, args );
      

      debug info

      • It doesn't happen since zk 8
      • when 'selectstart' event fires, somehow handleObj.handle is a boolean value, true, instead of a function.
      • a textbox out of a Listbox doesn't have such issue.
      • chrome and firefox doesn't have this issue.

      workaround

      please refer to patch-zk3523.js, based on the solution for ZK-3175

        1. 3523.zul
          0.3 kB
        2. patch-zk3523.js
          0.6 kB
        3. Untitled_1.png
          Untitled_1.png
          235 kB

            Unassigned Unassigned
            Deepak9777 Deepak9777
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified