(a,b)
| 1964 | |
| 1965 | // quick & dirty compare function, not bijective nor multidimensional |
| 1966 | function areEqual(a,b) { |
| 1967 | var same = true; |
| 1968 | $.each(a, function(i, _) { |
| 1969 | if (b[i] === undefined || a[i] !== b[i]) { |
| 1970 | same = false; |
| 1971 | return false; |
| 1972 | } |
| 1973 | }); |
| 1974 | return same; |
| 1975 | } |
| 1976 | |
| 1977 | // we'll assume the device has no mouse until we detect any mouse movement |
| 1978 | var deviceHasMouse = false; |