Permalink
Browse files

Export a change method to bind to viewportchange events.

  • Loading branch information...
1 parent 2683144 commit 84e0aa90877bb62ccba839402ce1aaad1457e661 @jzaefferer jzaefferer committed Mar 15, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/viewporter.js
View
4 src/viewporter.js
@@ -26,6 +26,10 @@ var viewporter;
ready: function(callback) {
window.addEventListener('viewportready', callback, false);
+ },
+
+ change: function(callback) {
+ window.addEventListener('viewportchange', callback, false);
}
};

0 comments on commit 84e0aa9

Please sign in to comment.