diff --git a/dashboard-ui/components/paperdialoghelper.js b/dashboard-ui/components/paperdialoghelper.js index a9d0bf298a..9d13e0b031 100644 --- a/dashboard-ui/components/paperdialoghelper.js +++ b/dashboard-ui/components/paperdialoghelper.js @@ -1,4 +1,4 @@ -(function (globalScope) { +define(['paper-dialog', 'scale-up-animation', 'fade-out-animation'], function () { function paperDialogHashHandler(dlg, hash, lockDocumentScroll) { @@ -164,11 +164,12 @@ } } - globalScope.PaperDialogHelper = { + window.PaperDialogHelper = { openWithHash: openWithHash, close: close, createDialog: createDialog, positionTo: positionTo }; -})(this); \ No newline at end of file + return PaperDialogHelper; +}); \ No newline at end of file