From a4ad41305329524f879471c01b5c06c171a62f40 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 8 Feb 2013 17:02:18 +0000 Subject: [PATCH] Replaced use of jQuery.browser with feature detection, for compatibility with jQuery 1.9 and above --- jquery.weekcalendar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.weekcalendar.js b/jquery.weekcalendar.js index 011820c..7d882ac 100644 --- a/jquery.weekcalendar.js +++ b/jquery.weekcalendar.js @@ -2020,9 +2020,9 @@ */ _disableTextSelect: function($elements) { $elements.each(function() { - if ($.browser.mozilla) {//Firefox + if (typeof this.style.MozUserSelect !== 'undefined') {//Firefox $(this).css('MozUserSelect', 'none'); - } else if ($.browser.msie) {//IE + } else if (typeof this.onselectstart !== 'undefined') {//IE $(this).bind('selectstart', function() { return false; });