Skip to content

Commit

Permalink
setResizeOnWindowResize -> bindResizeToWindowResize
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 4, 2016
1 parent 722c16a commit 9de19b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions panoramix/assets/javascripts/explore.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,5 @@ $(document).ready(function () {
});

$('div.toggle').addClass('pull-right');
slice.setResizeOnWindowResize();

slice.bindResizeToWindowResize();
});
2 changes: 1 addition & 1 deletion panoramix/assets/javascripts/modules/panoramix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion panoramix/assets/javascripts/standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ $(document).ready(function () {
var data = $('.slice').data('slice');
slice = px.Slice(data);
slice.render();
slice.setResizeOnWindowResize();
slice.bindResizeToWindowResize();
});

0 comments on commit 9de19b1

Please sign in to comment.