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

        Philip Breau created issue -
        Philip Breau made changes -
        Field Original Value New Value
        Assignee Philip.breau [ philip.breau ]
        Philip Breau made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 3.0.1 [ 10282 ]
        Resolution Fixed [ 1 ]
        Evgheni Sadovoi made changes -
        Attachment image 1.jpg [ 14059 ]
        Ken Fyten made changes -
        Fix Version/s EE-3.0.0.BETA [ 10324 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: