diff --git a/www/code/markers.js b/www/code/markers.js index f417c02fa..fb44707e0 100644 --- a/www/code/markers.js +++ b/www/code/markers.js @@ -651,8 +651,6 @@ define([ return uid || authorUid(existing); }; var ready = function (Env) { - var metadataMgr = Env.common.getMetadataMgr(); - var md = metadataMgr.getMetadata(); Env.ready = true; Env.myAuthorId = getAuthorId(Env); diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 00d51d46e..a5c1396c2 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1621,8 +1621,7 @@ define([ if (!data) { return void UI.alert(Messages.autostore_notAvailable); } - var metadataMgr = common.getMetadataMgr(); - sframeChan.query('EV_PROPERTIES_OPEN'); + sframeChan.event('EV_PROPERTIES_OPEN'); }); }); break; diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index 849bf6415..681701129 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -1036,7 +1036,7 @@ define([ initSecureModal('filepicker', data || {}, cb); }); - sframeChan.on('EV_PROPERTIES_OPEN', function (data, cb) { + sframeChan.on('EV_PROPERTIES_OPEN', function (data) { initSecureModal('properties', data || {}); }); diff --git a/www/secureiframe/inner.js b/www/secureiframe/inner.js index dae236031..a42cd5e7a 100644 --- a/www/secureiframe/inner.js +++ b/www/secureiframe/inner.js @@ -33,13 +33,13 @@ define([ var metadataMgr = common.getMetadataMgr(); var sframeChan = common.getSframeChannel(); var $body = $('body'); + var displayed; var hideIframe = function () { if (!displayed) { return; } sframeChan.event('EV_SECURE_IFRAME_CLOSE'); }; - var displayed; var create = {}; // Share modal