optimize unbind function
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user