Permalink
Browse files

[fix] pubnub: PUBNUB.history takes a callback that takes a javascript…

… array in parameters
  • Loading branch information...
1 parent 9157df8 commit 2426482e5aefd28919c9b7d729f711adeb5083c8 @BourgerieQuentin committed Dec 15, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/plugin/pubnub.js
@@ -1,4 +1,6 @@
// This is an Javascript file, containing opa preprocessing directives
+##extern-type llarray('a)
+//' Declare llarray as an external type
##register publish : string, string -> void
##args(c, m)
@@ -29,7 +31,8 @@
return js_void;
}
-##register history : string, int, (string -> void) -> void
+// Callback history doesn't take a string as argument but a low level javascript array
+##register history : string, int, (llarray(string) -> void) -> void
##args(channel, limit, callback)
{
PUBNUB.history({

0 comments on commit 2426482

Please sign in to comment.