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

Widget.domListen_ binds proxied functions wrongly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.0.1
    • 5.0.0, 9.0.0
    • ZK Client Engine
    • None

      Steps to Reproduce

      http://zkfiddle.org/sample/kag7ld/1-ZK-4439
      Click A and B

      Current Result

      Both two buttons trigger the same handler.

      Expected Result

      Separated handler should be called.

      Debug Information

      https://github.com/zkoss/zk/blob/v5.0.0/zk/src/archive/web/js/zk/widget.js#L64

      fps[f] will use f.toString() as key.
      The String of proxied function is always

      function () {
          return f.apply(o, arguments);
      }
      

      Workaround

            rudyhuang rudyhuang
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h