Opened 10 years ago
Closed 10 years ago
#12811 closed bug (notabug)
jQuery.extend() has a name bug
Reported by: | 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:"[email protected]",info:function(){console.log("name:"+this.name+",age:"+this.age+",email:"+this.email);}}); msg.info();
output: name:,age:28,email:[email protected]
Note: See
TracTickets for help on using
tickets.
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/name