ICEfaces
  1. ICEfaces
  2. ICE-7760

JS Error from Bridge when cleaning up iframes

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: EE-3.0.0.BETA, 3.0.1
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      n/a

      Description

      Bridge tries to clean up iframes onBeforeUpdate (ICE-7129), but some iframe elements are undefined:

       namespace.onBeforeUpdate(function(updates) {
               each(updates.getElementsByTagName('update'), function(update) {
                   var id = update.getAttribute('id');
                   var updatedElement = lookupElementById(id);
                   if (updatedElement) {
                       each(updatedElement.getElementsByTagName('iframe'), function(iframe) {
       [b] iframe.parentNode.removeChild(iframe);[/b]
                       });
                   }
               });
           });

      Uncaught TypeError: Cannot read property 'parentNode' of undefined

      bridge.js.iface:2822

        Activity

          People

          • Assignee:
            Philip Breau
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: