ICEfaces
  1. ICEfaces
  2. ICE-5844

Hide Prototype, Scriptaculous and 'compat' component JS variables/functions

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha3
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      ICEfaces 2.0 Compat APIs.
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration

      Description

      To avoid any variable name conflict with third party libraries the code in Prototype, Scriptaculous and 'compat' component should be evaluated within a function local context.

        Activity

        Hide
        Ken Fyten added a comment -

        This needs to be configurable to preserve backwards compatibility with apps or custom components that are relying on the public Prototype JS apis.

        Show
        Ken Fyten added a comment - This needs to be configurable to preserve backwards compatibility with apps or custom components that are relying on the public Prototype JS apis.
        Hide
        Ken Fyten added a comment -

        Upon reflection, we probably don't need the configuration aspect for ICEfaces 2.0 compat mode, users can link to the Prototype.js themselves if they require it in 2.0.

        Show
        Ken Fyten added a comment - Upon reflection, we probably don't need the configuration aspect for ICEfaces 2.0 compat mode, users can link to the Prototype.js themselves if they require it in 2.0.
        Hide
        Mircea Toma added a comment - - edited

        Prototype and Scriptaculous variable/function definitions are hidden now by wrapping them in a closure that is executed right away the icefaces-compat.js resource loads. Made public the functions used by component renderers, but namespaced them to avoid naming collisions. Changed renderers to use the new namespaced function names.

        Show
        Mircea Toma added a comment - - edited Prototype and Scriptaculous variable/function definitions are hidden now by wrapping them in a closure that is executed right away the icefaces-compat.js resource loads. Made public the functions used by component renderers, but namespaced them to avoid naming collisions. Changed renderers to use the new namespaced function names.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: