aboutsummaryrefslogtreecommitdiff
path: root/source/javascripts/libs/ios-viewport-scaling-bug-fix.js
diff options
context:
space:
mode:
Diffstat (limited to 'source/javascripts/libs/ios-viewport-scaling-bug-fix.js')
-rw-r--r--source/javascripts/libs/ios-viewport-scaling-bug-fix.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/source/javascripts/libs/ios-viewport-scaling-bug-fix.js b/source/javascripts/libs/ios-viewport-scaling-bug-fix.js
deleted file mode 100644
index 0e8d701d..00000000
--- a/source/javascripts/libs/ios-viewport-scaling-bug-fix.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// https://gist.github.com/901295
-// By @mathias, @cheeaun and @jdalton
-
-(function(doc) {
- var addEvent = 'addEventListener',
- type = 'gesturestart',
- qsa = 'querySelectorAll',
- scales = [1, 1],
- meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];
- function fix() {
- meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
- doc.removeEventListener(type, fix, true);
- }
- if ((meta = meta[meta.length - 1]) && addEvent in doc) {
- fix();
- scales = [.25, 1.6];
- doc[addEvent](type, fix, true);
- }
-}(document));
-