I have the following problem, I'm trying to make a small chained.
(function(window){
window.de=de={}
de.one=function(s){if(s){var y=document.getElementById(s); return y;} return this;}
de.two=function(s2){alert(s2); return this;}
})(window)
this is what I try to:
de.one("Id").two("Hello!");
but the console gives me this error:
TypeError: Object # has no method 'two'
this