Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace defunct caniuse jsonp.php?callback #2352

Merged
merged 18 commits into from
Oct 20, 2018
Prev Previous commit
Next Next commit
Fix ordering of prefixes to reverse-match omPrefixes
  • Loading branch information
rejas committed Oct 17, 2018
commit 28ee909ae9f05b9c3c522aecfe0081d50188848a
6 changes: 3 additions & 3 deletions test/browser/integration/prefixed.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ describe('prefixed()', function() {
// Generic control function used for prefixed() and prefixedCSS() tests
// https://gist.github.com/523692
function gimmePrefix(prop, obj) {
var prefixes = ['Moz', 'Khtml', 'Webkit', 'O', 'ms'],
domPrefixes = ['moz', 'khtml', 'webkit', 'o', 'ms'],
var prefixes = ['Webkit', 'ms', 'O', 'Moz', 'Khtml'],
domPrefixes = ['webkit', 'ms', 'o', 'moz', 'khtml'],
elem = document.createElement('div'),
upper = prop.charAt(0).toUpperCase() + prop.slice(1),
len;
Expand All @@ -25,7 +25,7 @@ describe('prefixed()', function() {
}

for (len = domPrefixes.length; len--;) {
if ((domPrefixes[len] + upper) in obj) {
if ((domPrefixes[len] + upper) in obj) {
return (domPrefixes[len] + upper);
}
}
Expand Down