« first day (1815 days earlier)      last day (2287 days later) » 

 
2 hours later…
 
4 hours later…
3:12 PM
class Obj {
constructor() {
this.func2 = this._func2.bind(this);
}
_func1() {
console.log('Props=====',this.props)//works
this.func2(); //fails
}
_func2() {
console.log('Calling func2');
}

}




function test() {
var o = new Obj();
this.props = {a:2};
o._func1.call(this);

}
test();
 
1 message moved from JavaScript
 
3:59 PM
pls
Trash
@jrsaladbar ban
4life
u know
flag me m8
I dare you
Instant banfor u
I know a moderator
for real
Happy new year though :)
 
 
4 hours later…
 
2 hours later…
10:36 PM
 
1 message moved from SOBotics
1 message moved from SOBotics
 
1 message moved from SOBotics
 

« first day (1815 days earlier)      last day (2287 days later) »