vendor/assets/javascripts/webshims/shims/combos/17.js in webshims-rails-1.14.6 vs vendor/assets/javascripts/webshims/shims/combos/17.js in webshims-rails-1.15.2

- old
+ new

@@ -2428,10 +2428,11 @@ })(); } (function(){ var picker = {}; - var assumeVirtualKeyBoard = (window.Modernizr && (Modernizr.touchevents || Modernizr.touch)) || (/android|iphone|ipad|ipod|blackberry|iemobile/i.test(navigator.userAgent.toLowerCase())); + var modern = window.Modernizr; + var assumeVirtualKeyBoard = (modern && (modern.touchevents || modern.touch)) || (/android|iphone|ipad|ipod|blackberry|iemobile/i.test(navigator.userAgent.toLowerCase())); webshims.inlinePopover = { _create: function(){ this.element = $('<div class="ws-inline-picker"><div class="ws-po-box" /></div>').data('wspopover', this); this.contentElement = $('.ws-po-box', this.element); this.element.insertAfter(this.options.prepareFor);