ICEfaces
  1. ICEfaces
  2. ICE-8157

Use window.addEventListener/window.attachEvent to register window callbacks

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0.BETA1
    • Fix Version/s: 3.1.0.RC1, 3.1
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      Supported browsers
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      Use window.addEventListener/window.attachEvent to register window callbacks. This is to avoid having the callback overwritten when window.on* properties are updated.

        Activity

        Hide
        Mircea Toma added a comment -

        It should be noted in the Wiki documentation that if you want to add any of your own scripts to window.onload, onunload, onbeforeunload, etc. you should use the window.addEventListener or window.attachEvent (IE before version 9).

        Show
        Mircea Toma added a comment - It should be noted in the Wiki documentation that if you want to add any of your own scripts to window.onload, onunload, onbeforeunload, etc. you should use the window.addEventListener or window.attachEvent (IE before version 9).
        Hide
        Mircea Toma added a comment -

        Modified window or document event listener registration functions to use addEventListener/attachEvent methods to avoid the overwriting that can occur when using the window.on**** properties.

        Show
        Mircea Toma added a comment - Modified window or document event listener registration functions to use addEventListener/attachEvent methods to avoid the overwriting that can occur when using the window.on**** properties.
        Hide
        Mircea Toma added a comment -

        Added warning/usage notes for ice.onLoad and ice.onUnload functions in the Wiki page http://wiki.icesoft.org/display/ICE/JavaScript+Client+API.

        Show
        Mircea Toma added a comment - Added warning/usage notes for ice.onLoad and ice.onUnload functions in the Wiki page http://wiki.icesoft.org/display/ICE/JavaScript+Client+API .

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Mircea Toma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: