Permalink
Browse files

Merge pull request #631 from urazkines/patch-1

Update master
  • Loading branch information...
2 parents 6f5e884 + c6ebf28 commit 34df7a324ae2914c81f0f96e06d8561466b4068b @paulirish paulirish committed Jul 19, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 feature-detects/css-lastchild.js
@@ -2,6 +2,7 @@
// https://github.com/Modernizr/Modernizr/pull/304
-Modernizr.testStyles("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}", function(elem) {
- return elem.lastChild.offsetWidth > elem.firstChild.offsetWidth;
-}, 1);
+Modernizr.testStyles("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}", function (elem) {
+ var lastchild = Modernizr.addTest('lastchild', elem.lastChild.offsetWidth > elem.firstChild.offsetWidth);
+}, 2);
+

0 comments on commit 34df7a3

Please sign in to comment.