perf(): raf updates

This commit is contained in:
Adam Bradley
2015-11-20 20:24:17 -06:00
parent f66155904c
commit 002e5e86a6
5 changed files with 50 additions and 39 deletions

View File

@ -21,12 +21,12 @@ export class FeatureDetect {
let featureDetects = {};
FeatureDetect.add('sticky', function(window, document) {
// css position sticky
let ele = document.createElement('div');
ele.style.cssText = 'position:-webkit-sticky;position:sticky';
return ele.style.position.indexOf('sticky') > -1;
});
// FeatureDetect.add('sticky', function(window, document) {
// // css position sticky
// let ele = document.createElement('div');
// ele.style.cssText = 'position:-webkit-sticky;position:sticky';
// return ele.style.position.indexOf('sticky') > -1;
// });
FeatureDetect.add('hairlines', function(window, document, body) {