The 'afterload' attribute added by this patch allows specifying
the name of a function (to be supplied by the embedded content)
to run after the frame has been loaded.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
// called after onload of each new iframe page
onchange : '=?',
+ // called after egFrameEmbedLoader, during link phase
+ afterload : '@',
+
// for tweaking height
saveSpace : '@',
minHeight : '=?',
window.IEMBEDXUL = true;
element.find('iframe').on(
'load',
- function() {scope.egEmbedFrameLoader(this)}
+ function() {
+ scope.egEmbedFrameLoader(this);
+ if (scope.afterload) this.contentWindow[scope.afterload]();
+ }
);
},