AS1/2 postincrement fix

This commit is contained in:
Jindra Petk
2013-07-20 09:25:05 +02:00
parent 6167e9770a
commit 5a137f0a20

View File

@@ -102,6 +102,23 @@ public class GetVariableActionItem extends ActionItem {
return true;
}
@Override
public boolean valueEquals(GraphTargetItem obj) {
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final GetVariableActionItem other = (GetVariableActionItem) obj;
if (this.name != other.name && (this.name == null || !this.name.valueEquals(other.name))) {
return false;
}
return true;
}
@Override
public List<GraphSourceItem> toSource(List<Object> localData, SourceGenerator generator) {
return toSourceMerge(localData, generator, name, new ActionGetVariable());