[Greasemonkey] Unwanted string conversion in attribute setting

Lenny Domnitser ldrhcp at gmail.com
Mon Mar 20 14:57:03 EST 2006

On 3/20/06, Anthony Lieuallen <arantius at gmail.com> wrote:
> button.['_target']=target;

This does not work with with XPCNativeWrappers. You should probably
try to store a dictionary of button->target pairs as a local
javascript object.

var targets = {};
// ...
targets[button] = target;

More information about the Greasemonkey mailing list