bindx 3 work

This commit is contained in:
Dima Granetchi
2014-11-10 17:16:26 +02:00
parent 8e8644ad0c
commit ab5fde94b0
7 changed files with 74 additions and 44 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
package ;
import bindx.IBindable;
import bindx.Bind;
class InheritanceTest extends haxe.unit.TestCase {
public function new() {
@@ -12,7 +13,7 @@ class InheritanceTest extends haxe.unit.TestCase {
c.i = 0;
c.s = "0";
var iChanged = 0;
c.iChanged.add(function (from, to) {
Bind.bind(c.i, function (from, to) {
assertEquals(from, 0);
assertEquals(to, 1);
iChanged ++;
@@ -21,7 +22,7 @@ class InheritanceTest extends haxe.unit.TestCase {
assertEquals(iChanged, 1);
var sChanged = 0;
c.sChanged.add(function (from, to) {
Bind.bind(c.s, function (from, to) {
assertEquals(from, "0");
assertEquals(to, "1");
sChanged ++;