There is an error in the isMobile() function. The problem is with the following code:
$.each(mobile_devices, function(index, value) {
if ($.inArray(value, classes) != -1) {
return true;
}
});
The return statement is in the scope of the anonymous function passed as the second argument for $.each(), hence the execution of the isMobile() will not terminate, as that is a different scope.
I have fixed the issue, will post a patch in an upcoming comment.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | browserclass-android-mobile-class-js-2092545-1.patch | 1.24 KB | temaruk |
Comments
Comment #1
temaruk commentedAttached the patch, applies against latest dev.
Comment #2
k.dani commentedCommited (#1990603) to dev.