From 5093d99000e32c80bc246608c5d5faad011044b1 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 4 Dec 2015 15:12:45 -0500 Subject: [PATCH] update paper dialog helper --- dashboard-ui/components/paperdialoghelper.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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