Creating _a.target is a little different.
It like this =>
var _a,_b
var A =function(jquery){
this.target = jquery
}
var B =function(jquery){
this.target =jquery;
_a = new A (this.target)
}
_b = new B($('#id'));
In debugging, _a.target shows right,it is the right $('#id'), but any Jquery method of_a.target is not working!!!!
_a.target.css('color','red') isn't working.
_a.target.offset() return {top:0,left:0}.
but
_a.target.css('color','red') works fine.
_b.target.offset() return the right value {top:122,left:522.5}.
i just don't know how to deal with it?
anyone can help me out? thank a lot!