From 18dca1367211ffa9e590cc986dde8889f2ad2ba8 Mon Sep 17 00:00:00 2001 From: Dima Granetchi Date: Fri, 21 Nov 2014 01:07:33 +0200 Subject: [PATCH] optimize unbind function --- .travis.yml | 2 +- src/bindx/BindxExt.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9db1486..2f06528 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ env: - TARGET=interp - TARGET=macro # optional: MACROFLAGS: specify the flags that are unique to building/running with --macro arguments - - TARGET=js TOOLCHAIN=default HXFLAGS_EXTRA="-D nodejs -js js.js" # target is tested by node.js + - TARGET=js TOOLCHAIN=default # target is tested by node.js # optional: FILENAME # optional: NODECMD: set the command to be run by nodejs - TARGET=js TOOLCHAIN=browser # target is tested by browsers / phantomjs diff --git a/src/bindx/BindxExt.hx b/src/bindx/BindxExt.hx index f3b7416..600a092 100644 --- a/src/bindx/BindxExt.hx +++ b/src/bindx/BindxExt.hx @@ -71,7 +71,7 @@ class BindExt { var chain = prepareBindChain(fields, listener, expr.pos); var res = macro - $b { chain.bind.concat(chain.init).concat([macro function __unbind__():Void { $b { chain.unbind } }]) }; + $b { chain.bind.concat(chain.init).concat([macro function __unbind__():Void $b { chain.unbind } ]) }; trace(new Printer().printExpr(res)); return res; }