summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <none@none>2012-08-21 18:55:42 +0200
committerportix <none@none>2012-08-21 18:55:42 +0200
commit16e15d7a2b71410520643dd83e6f8733a23a13a5 (patch)
treec3a803ebdf37541882e5eaeff2d559c5b4d558bb /src
parent99a66bed6491a00be08bbb261957408e49f6cf6c (diff)
downloaddwb-16e15d7a2b71410520643dd83e6f8733a23a13a5.zip
Implementing extensions.bind; fixing failing unbind when called with function-argument; jsapi-documentation
Diffstat (limited to 'src')
-rw-r--r--src/scripts.c2
1 files changed, 1 insertions, 1 deletions
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;