bindTo fixes

This commit is contained in:
Dima Granetchi
2014-11-10 22:17:02 +02:00
parent 5f1da93724
commit 94d86b091f
4 changed files with 26 additions and 16 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ class Bind {
public static function checkField(field:Expr):{e:Expr, field:ClassField} {
switch (field.expr) {
case EField(e, field):
var classType = Context.typeof(e).getClass();
var classType = Context.typeof(e).follow().getClass();
if (classType == null || !isBindable(classType)) {
Context.error('\'${e.toString()}\' must be bindx.IBindable', e.pos);
return null;