mirror of https://github.com/twbs/ratchet.git
Johann-S
10 years ago
4 changed files with 31 additions and 31 deletions
@ -0,0 +1,27 @@ |
|||||||
|
/* ======================================================================== |
||||||
|
* Ratchet: common.js v2.0.2 |
||||||
|
* http://goratchet.com/
|
||||||
|
* ======================================================================== |
||||||
|
* Copyright 2015 Connor Sears |
||||||
|
* Licensed under MIT (https://github.com/twbs/ratchet/blob/master/LICENSE)
|
||||||
|
* ======================================================================== */ |
||||||
|
|
||||||
|
!(function () { |
||||||
|
'use strict'; |
||||||
|
|
||||||
|
// Original script from http://davidwalsh.name/vendor-prefix
|
||||||
|
var getBrowserCapabilities = (function () { |
||||||
|
var styles = window.getComputedStyle(document.documentElement, ''); |
||||||
|
var pre = (Array.prototype.slice |
||||||
|
.call(styles) |
||||||
|
.join('') |
||||||
|
.match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o']) |
||||||
|
)[1]; |
||||||
|
return { |
||||||
|
prefix: '-' + pre + '-', |
||||||
|
transform: pre[0].toUpperCase() + pre.substr(1) + 'Transform' |
||||||
|
}; |
||||||
|
})(); |
||||||
|
|
||||||
|
window.getBrowserCapabilities = getBrowserCapabilities; |
||||||
|
}()); |
Loading…
Reference in new issue