Sha256: c97bc4562ca0fdf455baa32f0ee065bb39cf331968571604c9852b385c481c25
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
# Sends several generic events to the parent window that indicates the # current state of the Iframe. # Tell the parent that we are ready @addEventListener 'DOMContentLoaded', (e) => @parent.postMessage { event:'domloaded:iframe' }, @location.origin , false events = [ 'load', 'error', 'change', 'hashchange', 'resize', 'pageshow', 'pagehide', 'beforeunload' ] events.forEach (evt) => @addEventListener evt, (e) => @parent.postMessage { event:"#{evt}:iframe" }, @location.origin , false
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
network_executive-0.0.7 | app/assets/javascripts/network_executive/components/iframe_notifier.coffee |