/**
 *
 * @copyright  2019 so-o.org
 * @version    1
 * @link       http://www.so-o.org
 */

"use strict";

import { sendmsg } from 'So-o';

import 'Button';

var btn = sendmsg(Button, 'new');

sendmsg(btn, 'click');

import 'Action';

var act1 = sendmsg(Action, 'new');

sendmsg(btn, 'addNextResponder', act1);
sendmsg(btn, 'click');

import 'AnotherAction';

var act2 = sendmsg(AnotherAction, 'new');

sendmsg(btn, 'addNextResponder', act2);
sendmsg(btn, 'click');

sendmsg(btn, 'removeNextResponder', act2);
sendmsg(btn, 'click');

sendmsg(act1, 'addNextResponder', act2);
sendmsg(btn, 'click');

sendmsg(btn, 'removeNextResponder', act1);
sendmsg(act1, 'removeNextResponder', act2);
sendmsg(btn, 'click');

sendmsg(act2, 'addNextResponder', act1);
sendmsg(btn, 'addNextResponder', act2);
sendmsg(btn, 'click');

