Try un-prefixed name before various prefixes, to prevent console warnings.

This commit is contained in:
Jürg Lehni 2014-08-15 18:00:32 +02:00
parent 3ac9a4f369
commit ce4e6053ec

View file

@ -48,7 +48,7 @@ var DomElement = new function() {
// Handles both getting and setting of vendor prefix values
function handlePrefix(el, name, set, value) {
var prefixes = ['webkit', 'moz', 'Moz', 'ms', 'o', ''],
var prefixes = ['', 'webkit', 'moz', 'Moz', 'ms', 'o'],
suffix = name[0].toUpperCase() + name.substring(1);
for (var i = 0; i < 6; i++) {
var prefix = prefixes[i],