Created
May 11, 2015 22:48
-
-
Save joshuavial/d33c30ddb47f4857f8c9 to your computer and use it in GitHub Desktop.
js function that has properties
This file contains hidden or 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
var $ = (function() { | |
var jquery = function(selector) { | |
console.log(selector) | |
} | |
jquery.on = function() { | |
console.log('on') | |
} | |
return jquery | |
})() | |
$('selector') | |
$.on() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment