From 16e15d7a2b71410520643dd83e6f8733a23a13a5 Mon Sep 17 00:00:00 2001 From: portix Date: Tue, 21 Aug 2012 18:55:42 +0200 Subject: Implementing extensions.bind; fixing failing unbind when called with function-argument; jsapi-documentation --- src/scripts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/scripts.c b/src/scripts.c index eb0687e4..d7fa89ea 100644 --- a/src/scripts.c +++ b/src/scripts.c @@ -608,7 +608,7 @@ global_unbind(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, si g_free(name); } else if (JSValueIsObject(ctx, argv[0])) { - for (l = dwb.keymap; l && argv[0] != ((KeyMap*)l->data)->map->arg.p; l=l->next); + for (l = dwb.keymap; l && !JSValueIsEqual(ctx, argv[0], ((KeyMap*)l->data)->map->arg.arg, exc); l=l->next); } if (l != NULL) { m = l->data; -- cgit v1.2.3