diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3a4edf6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.project diff --git a/.project b/.project new file mode 100644 index 0000000..95d5913 --- /dev/null +++ b/.project @@ -0,0 +1,11 @@ + + + FlowType.JS + + + + + + + + diff --git a/flowtype.js b/flowtype.js index 5ed5162..8c60a1f 100644 --- a/flowtype.js +++ b/flowtype.js @@ -40,7 +40,9 @@ // Context for resize callback var that = this; // Make changes upon resize - $(window).resize(function(){changes(that);}); + $(window).on('resize orientationchange', function(){ + changes(that); + }); // Set changes on load changes(this); });