what is the correct syntax to create a namespace within jquery, so as to allow the passing of the matched set to nested methods?
this is what I have:
(function($) {
var nameSpace = {
module: function(x){
}
}
})(jQuery)
but calling $('.selector').nameSpace.module() returns
Cannot call method 'module' of undefined