How I mix closures with delegates

Since I really want closures to package up some state right where I need it, but the LFC API's all use LzDelegate, I find myself doing this; making a closure and defining a "method" on it, and pointing the delegate at that.

var myclosure = {addAAText: function () {
pclip[clipid]._accProps = {name: altval}
}
}
var aadel = new LzDelegate(myclosure, 'addAAText');
LzIdle.callOnIdle(aadel);

Comments are closed.