diff options
Diffstat (limited to 'elm/ImageFlagging.js')
-rw-r--r-- | elm/ImageFlagging.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/elm/ImageFlagging.js b/elm/ImageFlagging.js index 87ced23a..d460bd10 100644 --- a/elm/ImageFlagging.js +++ b/elm/ImageFlagging.js @@ -1,6 +1,4 @@ -var init = Elm.ImageFlagging.init; - -Elm.ImageFlagging.init = function(opt) { +wrap_elm_init('ImageFlagging', function(init, opt) { opt.flags.pWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; opt.flags.pHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; var app = init(opt); @@ -15,4 +13,4 @@ Elm.ImageFlagging.init = function(opt) { preload[url].src = url; } }); -}; +}); |