Created
September 6, 2013 17:15
-
-
Save dviramontes/6466836 to your computer and use it in GitHub Desktop.
tip by @LeaVerou (https://github.com/LeaVerou/border-corner-shape/blob/gh-pages/border-corner-shape.js)
jQuery wrap around the new querySelector()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for smallest jquery include ever... | |
function $(expr, cond){ return (con || document).querySelector(expr); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
upps
function $(expr, cond){ return (cond || document).querySelector(expr); }