optimize unbind function

This commit is contained in:
Dima Granetchi
2014-11-21 01:07:33 +02:00
parent ddc85fe9a7
commit 18dca13672
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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;
}