Side navigation
#12811 closed bug (notabug)
Opened October 30, 2012 02:16PM UTC
Closed October 30, 2012 02:31PM UTC
jQuery.extend() has a name bug
Reported by: | zhandx@163.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
var msg = function(){
this.birthday = "2012-10-30";
};
jQuery.extend(msg,{name:"hello",age:28,email:"zhandx@163.com",info:function(){console.log("name:"+this.name+",age:"+this.age+",email:"+this.email);}});
msg.info();
output:
name:,age:28,email:zhandx@163.com
Attachments (0)
Change History (1)
Changed October 30, 2012 02:31PM UTC by comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/name