From 9de19b169f3616b8124614ef73f713eb5e86a97f Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Fri, 4 Mar 2016 18:56:06 -0500 Subject: [PATCH] setResizeOnWindowResize -> bindResizeToWindowResize --- panoramix/assets/javascripts/explore.js | 3 +-- panoramix/assets/javascripts/modules/panoramix.js | 2 +- panoramix/assets/javascripts/standalone.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/panoramix/assets/javascripts/explore.js b/panoramix/assets/javascripts/explore.js index 79c83fb8fdc36..8817f6be92cbb 100644 --- a/panoramix/assets/javascripts/explore.js +++ b/panoramix/assets/javascripts/explore.js @@ -330,6 +330,5 @@ $(document).ready(function () { }); $('div.toggle').addClass('pull-right'); - slice.setResizeOnWindowResize(); - + slice.bindResizeToWindowResize(); }); diff --git a/panoramix/assets/javascripts/modules/panoramix.js b/panoramix/assets/javascripts/modules/panoramix.js index aceba80552b8c..ad64a680d232e 100644 --- a/panoramix/assets/javascripts/modules/panoramix.js +++ b/panoramix/assets/javascripts/modules/panoramix.js @@ -217,7 +217,7 @@ var px = (function () { others += widget.find('.slice_header').height(); return widget.height() - others; }, - setResizeOnWindowResize: function () { + bindResizeToWindowResize: function () { var resizeTimer; $(window).on('resize', function (e) { clearTimeout(resizeTimer); diff --git a/panoramix/assets/javascripts/standalone.js b/panoramix/assets/javascripts/standalone.js index bf0e6045cf4b8..062b3446a446c 100644 --- a/panoramix/assets/javascripts/standalone.js +++ b/panoramix/assets/javascripts/standalone.js @@ -9,5 +9,5 @@ $(document).ready(function () { var data = $('.slice').data('slice'); slice = px.Slice(data); slice.render(); - slice.setResizeOnWindowResize(); + slice.bindResizeToWindowResize(); });