Permalink
Browse files

Merge pull request #7 from jzaefferer/patch-1

viewporter.change() method for alternative binding capability.
  • Loading branch information...
2 parents 2683144 + 84e0aa9 commit 6959ed558abeb783dc5e4c9a8752ca604b2ef4fe Christoph Martens committed Mar 15, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/viewporter.js
View
@@ -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 6959ed5

Please sign in to comment.