From 7617ce33f7d00038eda14f271900a8b23e09811a Mon Sep 17 00:00:00 2001 From: portix Date: Thu, 7 Mar 2013 10:19:37 +0100 Subject: Return 'null' from clipboard_get rather than 'undefined' --- src/scripts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/scripts.c') diff --git a/src/scripts.c b/src/scripts.c index e0534db0..1374728f 100644 --- a/src/scripts.c +++ b/src/scripts.c @@ -1690,10 +1690,10 @@ static JSValueRef clipboard_get(JSContextRef ctx, JSObjectRef f, JSObjectRef thisObject, size_t argc, const JSValueRef argv[], JSValueRef* exc) { if (argc < 1) - return UNDEFINED; + return NIL; GdkAtom atom = atom_from_jsvalue(ctx, argv[0], exc); if (atom == NULL) - return UNDEFINED; + return NIL; GtkClipboard *clipboard = gtk_clipboard_get(atom); if (argc > 1) { @@ -1715,7 +1715,7 @@ clipboard_get(JSContextRef ctx, JSObjectRef f, JSObjectRef thisObject, size_t ar } return ret; } - return UNDEFINED; + return NIL; } static JSValueRef -- cgit v1.2.3