Browse Source

ok. only event

Namdak Tonpa 6 years ago
parent
commit
11ac38071e
3 changed files with 15 additions and 15 deletions
  1. 0 14
      include/event.hrl
  2. 15 0
      include/nitro.hrl
  3. 0 1
      src/actions/action_jq.erl

+ 0 - 14
include/event.hrl

@@ -4,19 +4,5 @@
 -include_lib("nitro/include/nitro.hrl").
 
 -record(event,   {?ACTION_BASE(action_event), type=default, postback, delegate, validation=[]}).
--record(action,  {?ACTION_BASE(undefined)}).
--record(wire,    {?ACTION_BASE(action_wire)}).
-
--record(replace, {?ACTION_BASE(action_manage), elements}).
--record(insert,  {?ACTION_BASE(action_manage), elements, position = beforeend}).
--record(multi,   {?ACTION_BASE(action_manage)}).
--record(focus,   {?ACTION_BASE(action_ui)}).
-
--record(api,     {?ACTION_BASE(action_api), name, tag, delegate }).
--record(bind,    {?ACTION_BASE(action_bind), type=click, postback}).
--record(alert,   {?ACTION_BASE(action_alert), text}).
--record(confirm, {?ACTION_BASE(action_confirm), text, postback, delegate}).
--record(jq,      {?ACTION_BASE(action_jq), property, method, args=[], right, format="~s"}).
--record(transfer,{?ACTION_BASE(action_transfer), state, events=[] }).
 
 -endif.

+ 15 - 0
include/nitro.hrl

@@ -194,4 +194,19 @@
 -record(message,		?DEFAULT_BASE).
 -record(author,		    ?DEFAULT_BASE).
 
+-record(action,  {?ACTION_BASE(undefined)}).
+-record(wire,    {?ACTION_BASE(action_wire)}).
+
+-record(replace, {?ACTION_BASE(action_manage), elements}).
+-record(insert,  {?ACTION_BASE(action_manage), elements, position = beforeend}).
+-record(multi,   {?ACTION_BASE(action_manage)}).
+-record(focus,   {?ACTION_BASE(action_ui)}).
+
+-record(api,     {?ACTION_BASE(action_api), name, tag, delegate }).
+-record(bind,    {?ACTION_BASE(action_bind), type=click, postback}).
+-record(alert,   {?ACTION_BASE(action_alert), text}).
+-record(confirm, {?ACTION_BASE(action_confirm), text, postback, delegate}).
+-record(jq,      {?ACTION_BASE(action_jq), property, method, args=[], right, format="~s"}).
+-record(transfer,{?ACTION_BASE(action_transfer), state, events=[] }).
+
 -endif.

+ 0 - 1
src/actions/action_jq.erl

@@ -2,7 +2,6 @@
 -author('Rusty Klophaus').
 -author('Andrey Martemyanov').
 -include_lib("nitro/include/nitro.hrl").
--include_lib("nitro/include/event.hrl").
 -compile(export_all).
 
 -define(B(E), nitro:to_binary(E)).