summaryrefslogtreecommitdiff
path: root/src/scripts.c
diff options
context:
space:
mode:
authorportix <none@none>2013-03-07 10:19:37 +0100
committerportix <none@none>2013-03-07 10:19:37 +0100
commit7617ce33f7d00038eda14f271900a8b23e09811a (patch)
tree8047c3ed83dccac458b447af931beb70af65fe4c /src/scripts.c
parent874e25727b466509e4c1d97efec1d884146e58d9 (diff)
downloaddwb-7617ce33f7d00038eda14f271900a8b23e09811a.zip
Return 'null' from clipboard_get rather than 'undefined'
Diffstat (limited to 'src/scripts.c')
-rw-r--r--src/scripts.c6
1 files changed, 3 insertions, 3 deletions
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