Skip to content

Instantly share code, notes, and snippets.

@joshuavial
Created May 11, 2015 22:48
Show Gist options
  • Save joshuavial/d33c30ddb47f4857f8c9 to your computer and use it in GitHub Desktop.
Save joshuavial/d33c30ddb47f4857f8c9 to your computer and use it in GitHub Desktop.
js function that has properties
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