mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Try un-prefixed name before various prefixes, to prevent console warnings.
This commit is contained in:
parent
3ac9a4f369
commit
ce4e6053ec
1 changed files with 1 additions and 1 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue