2.4.0 release

This commit is contained in:
Dmitri Granetchi
2015-06-27 01:07:08 +03:00
parent aac6e6fada
commit 3b77b083d4
5 changed files with 5 additions and 5 deletions
+1
View File
@@ -60,6 +60,7 @@ Bind.bind(expr, listener) | executes `listener` if property or method in `expr`
Bind.bindTo(expr, toExpr) | Assign result of `expr` to `toExpr` (NB: if `expr` contains method, then this method will be executed without arguments!). Does NOT invoke `expr` automatically.
Bind.notify(expr, oldValue, newValue) | Manually execute notification about property or method changes (if `expr` is method, then `oldValue` and `newValue` are not required)
Bind.unbind(expr, listener) | Unsubscribe provided `listener` from `expr` changes (NB: if `listener` is not specified, all listeners for binded to this `expr` will be unsubscribed)
Bind.bindAll(obj:IBindable, listener, force) | Bind all properties and methods of `obj` (force mode instantiate all lazy signals). Return unbind callback
Bind.unbindAll(obj:IBindable) | Unbind all properties and methods of `obj` (NB: still can bind new listeners after that!)
## Extended API:
+1
View File
@@ -60,6 +60,7 @@ Bind.bind(expr, listener) | `listener` вызывается при смене с
Bind.bindTo(expr, toExpr) | Присваивает значение `expr` выражению `toExpr` (NB: в случае метода вызывает метод без параметров!). Автоматически первый вызов НЕ происходит
Bind.notify(expr, oldValue, newValue) | Ручной вызов оповещения об изменении свойства или метода (в случае метода ожидается только один аргумент в методе `notiry`)
Bind.unbind(expr, listener) | Удаляется подписка на изменения свойства (NB: если `listener` не указать, произойдет полная отписка всех слушателей!)
Bind.bindAll(obj:IBindable, listener, force) | Подписывается на изменения всех свойств и методов `obj` (force режим создаст все лениво создаваемые сигналы). Вернет колбек для отписки
Bind.unbindAll(obj:IBindable) | Удаляются все подписки на изменения всех свойств и методов объекта (NB: дальнейшая подписка доступна!)
## Расширенное API:
+2 -2
View File
@@ -5,8 +5,8 @@
"tags": ["bind", "binding", "bindings", "cross"],
"description": "Powerful and fast macro-based data binding engine inspired by Flex Bindings with easy-to-use syntax.",
"classPath": "src",
"version": "2.3.0",
"releasenote": "typedefs support",
"version": "2.4.0",
"releasenote": "bindAll method",
"contributors": [
"deep"
]
-2
View File
@@ -118,12 +118,10 @@ class SignalTools {
var data = std.Reflect.field(meta, m);
if (std.Reflect.hasField(data, BIND_SIGNAL_META)) {
var signal:bindx.BindSignal.Signal<Dynamic> = cast std.Reflect.field(bindable, m);
trace(signal);
if (signal == null && force) {
var args:Array<Dynamic> = std.Reflect.field(data, BIND_SIGNAL_META);
var lazy:Bool = args[0];
if (lazy) signal = cast std.Reflect.getProperty(bindable, m.substr(1));
trace(signal);
}
if (signal != null) signals.push(signal);
}
Executable → Regular
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
zip -r haxelib.zip src haxelib.json
zip -r haxelib.zip src haxelib.json README.md
haxelib submit haxelib.zip