hitch to to a deferred

677
1
11-20-2011 02:24 PM
HaroldBostic
Occasional Contributor II
Is it possible to hitch to a deferred?  Something like the following:


dl.then(dojo.hitch(this,function(res){
      //res has a value without the hitch
      //with the hitch, not so much
}))



I would like to access some properties of this inside the resolution if possible.  This is my first time leveraging deferreds, so I could be doing something wrong
0 Kudos
1 Reply
HaroldBostic
Occasional Contributor II
It works just fine, I had some other stuff going on and had my closing parenthesis in the wrong spot.

Thanks
0 Kudos