Skip to content

Commit 92b599a

Browse files
committed
update browser detection code for modern jQuery
1 parent 6c04643 commit 92b599a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jcparallax.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ $.extend(jcparallax, {
166166
};
167167
};
168168

169-
if ($.browser.msie) {
169+
var isMSIE = /*@cc_on!@*/false,
170+
isOpera = window.opera || false;
171+
172+
if (isMSIE) {
170173
return returnSupport(false);
171174
} else {
172175
// check browser transition support via style DOM object. Credits to Modernizr here for the method.
@@ -196,7 +199,7 @@ $.extend(jcparallax, {
196199
}
197200

198201
// flag background and text-shadow to use fallback mode in opera
199-
if ($.browser.opera) {
202+
if (isOpera) {
200203
bgOk = false;
201204
tsOk = false;
202205
}

0 commit comments

Comments
 (0)