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

Websocket implementation causing issues with PE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.0
    • Freshly, 8.5.0
    • ZK Update Engine
    • Security Level: Jimmy
    • None
    • CE / PE

      Steps to Reproduce

      run ZK using CE or PE

      trigger an event to server:

      <button onClick=""/>
      

      Current Result

      zk.wpd:formatted:12597 Uncaught ReferenceError: zWs is not defined
          at Object.sendNow (zk.wpd:formatted:12597)
          at zk.wpd:formatted:12267
      

      Expected Result

      no error

      Root Cause

      incorrect checks for undefined variables
      e.g.:
      https://github.com/zkoss/zk/blob/6b4ae14a691e663ab8199e4315aeb4c662544b56/zk/src/archive/web/js/zk/au.js#L712

            wenninghsu wenninghsu
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m