title: javascript: anonymous function expose functions (how frameworks really works)
body: <p>i was exploring in the last few days how big frameworks works , how they assign their function name and it can't(?) be override , i pretty much know how framework work with anonymous function , for example they do it this way or similar version :</p>
  
  <pre><code>(function(){
     var Sizzle = function (){
        var x;
     };
     Sizzle.f = function(){
       alert("!");
     };
  
     window.Sizzle = Sizzle;
  
  })();
  </code></pre>
  
  <p>i still don't get few things about those huge frameworks and i hope i can find answer :</p>
  
  <ol>
  <li>how do they assign function name and the name can't be override?</li>
  <li>in the code above to call the function i need to write Sizzle.f() to get the function to work , but when i use jquery i don't write Jquery.show() , just show() , how do they vanish the "jquery" from "jquery.show()" function call?</li>
  </ol>
  
  <p>by saying the name can't be override i mean , if i create function with one of the jquery functions names , the jquery function will work.</p>
  
  <p>thanks in advance.</p>