why the result is not my object?
<pre><code>var name = "The Window";
var object = {
　　name : "My Object",
　　getNameFunc : function(){
　　　　return function(){
　　　　　 return this.name;
　　　  };
 　}
};
alert(object.getNameFunc()());
</code></pre>

<p>when i tested the code. the result is The Window. but i think <code>this.name;</code> should be <code>My Object</code>. what's wrong with my thinking. </p>

<p>when i add var before the <code>name : "My Object",</code> it show's an error.? why?</p>
