Bug Tracker

Opened 10 years ago

Closed 10 years ago

#12811 closed bug (notabug)

jQuery.extend() has a name bug

Reported by: [email protected] 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]

Change History (1)

Note: See TracTickets for help on using tickets.