MCPcopy Create free account
hub / github.com/blasten/turn.js / getPrefix

Function getPrefix

turn.js:178–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176 // Gets the CSS3 vendor prefix
177
178 getPrefix = function() {
179 var vendorPrefixes = ['Moz','Webkit','Khtml','O','ms'],
180 len = vendorPrefixes.length,
181 vendor = '';
182
183 while (len--)
184 if ((vendorPrefixes[len] + 'Transform') in document.body.style)
185 vendor='-'+vendorPrefixes[len].toLowerCase()+'-';
186
187 return vendor;
188 },
189
190 // Adds gradients
191

Callers 1

turn.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected