buttonContext parameter for Dialog buttons

buttonContext parameter for Dialog buttons

The jQuery ajax call allows me to specify the context for my callback.  I have a class with several methods, one of which makes the ajax call and another which is passed as the callback.  In this case, I pass "this" as my context so that my callback can reference the instantiated object.

Another method in the same class creates a dialog with buttons, and again other methods are passed as the callbacks for those buttons.  However, I cannot access the class variables in the normal fashion (i.e. using "this") in these callbacks, as I am not able to specify the context.

I can workaround this, but I thought it would be nice if I could specify a context of "this" for the button callbacks, just like I did with the ajax callback.  Is this feasible and reasonable?  Or have I misunderstood something?

Thanks,
Mike.