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

allow JS overrides for onResponseReady callback

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.0
    • 8.0.2
    • ZK Client Engine
    • Security Level: Jimmy
    • None
    • None

      it's complicated to override hidden JS functions which makes patching problems, or adjustments for conditions more difficult than necessary

      here some examples:
      onRespReady in serverpush - https://github.com/zkoss/zkcml/blob/master/zkex/src/archive/web/js/zkex/cmsp/serverpush.js#L19

      or
      onResponseReady in au.js - https://github.com/zkoss/zk/blob/4f24fc11451896b7c03f720a584aba509512a0f9/zk/src/archive/web/js/zk/au.js#L149

      both are huge methods containing lots of complex logic. please also consider breaking down the method into smaller parts to have multiple override hooks

            rudyhuang rudyhuang
            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 - 7 hours
                7h