Permalink
Browse files

sticky test. just formatting.

  • Loading branch information...
1 parent cfd831f commit 47d4b97ea9e94961857e67f6750ac2f181dc78da @paulirish paulirish committed Aug 31, 2012
Showing with 13 additions and 10 deletions.
  1. +13 −10 feature-detects/css-positionsticky.js
@@ -1,10 +1,13 @@
-// Sticky positioning - constrains an element to be positioned inside the
-// intersection of its container box, and the viewport.
-Modernizr.addTest('csspositionsticky', function () {
- var prop = 'position:',
- value = 'sticky',
- el = document.createElement('modernizr'),
- mStyle = el.style;
- mStyle.cssText = prop + Modernizr._prefixes.join(value + ';' + prop).slice(0, -prop.length);
- return mStyle.position.indexOf(value) !== -1;
-});
+// Sticky positioning - constrains an element to be positioned inside the
+// intersection of its container box, and the viewport.
+Modernizr.addTest('csspositionsticky', function () {
+
+ var prop = 'position:';
+ var value = 'sticky';
+ var el = document.createElement('modernizr');
+ var mStyle = el.style;
+
+ mStyle.cssText = prop + Modernizr._prefixes.join(value + ';' + prop).slice(0, -prop.length);
+
+ return mStyle.position.indexOf(value) !== -1;
+});

0 comments on commit 47d4b97

Please sign in to comment.