Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12811 closed bug (notabug)

jQuery.extend() has a name bug

Reported by: zhandx@… 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

Change History (1)

Note: See TracTickets for help on using tickets.