From 2b99f60d1c292b415ab8f3185540116cfe062cb7 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 10 Jul 2014 11:49:58 +0000 Subject: [PATCH] documentation --- src/mkws-popup.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mkws-popup.js b/src/mkws-popup.js index 6282ceb..fd6153a 100644 --- a/src/mkws-popup.js +++ b/src/mkws-popup.js @@ -2,7 +2,8 @@ * */ -// "use strict"; +"use strict"; + // $(document).ready(function () { mkws.registerWidgetType('Popup', function() { var $ = mkws.$; @@ -14,9 +15,9 @@ mkws.registerWidgetType('Popup', function() { return; } - // var popup_window = $(this.node); // - var popup_window = $(".mkwsPopup"); - + var popup_window = $(this.node); // mkws.registerWidgetType('Popup',....) + // var popup_window = $(".mkwsPopup"); // $(document).ready() + if (!popup_window) { debug("no popup found, skip"); return; -- 1.7.10.4