Skip to content

Commit

Permalink
change method name to init
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffshaver committed Jan 9, 2014
1 parent 0ba9504 commit 19f9756
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ The only other option that is allowed is data-vhmin-offset="number". Adding this

// Will remove 100 px from the viewport height
<div id="element-that-needs-viewport-height" data-vhmin="true" data-vhmin-offset="100"></div>

Once that is done, on load, call:

vhmin.init();
4 changes: 2 additions & 2 deletions vh-min.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ var vhmin = function() {
}
return {
elements: [],
initialize: function() {
init: function() {
getElements.call(this);
calculateHeight.call(this);
window.addEventListener('resize', calculateHeight.bind(this), false);
}
}
}();
}();

0 comments on commit 19f9756

Please sign in to comment.