Browse Source

remove event.detail from postback

Namdak Tonpa 9 years ago
parent
commit
44921096a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/render/wf_event.erl

+ 1 - 1
src/render/wf_event.erl

@@ -20,4 +20,4 @@ new(Postback, Element, Delegate, Name, Data, Source, Validation) ->
         Join([ case is_atom(S) of true -> atom_to_list(S); false -> S end || S <- Source, S =/= []]),
         Join([ case is_atom(S) of true -> atom_to_list(S); false -> S end || S <- Source, S =/= []]),
         <<"])) { ">>,nitro:to_binary(Validation),<<" ws.send(enc(tuple(atom('">>,
         <<"])) { ">>,nitro:to_binary(Validation),<<" ws.send(enc(tuple(atom('">>,
         nitro:to_binary(application:get_env(n2o,event,pickle)),<<"'),bin('">>,Element,<<"'),bin('">>,
         nitro:to_binary(application:get_env(n2o,event,pickle)),<<"'),bin('">>,Element,<<"'),bin('">>,
-        nitro:pickle(Event),<<"'),">>,Data,<<"))); } else console.log('Validation Error'); }">> ]).
+        nitro:pickle(Event),<<"'),[]))); } else console.log('Validation Error'); }">> ]).