Commit 5986676a authored by Nicolas Biri's avatar Nicolas Biri
Browse files

In references, type Class can be used again to accept any objects.

parent 8bb51db6
......@@ -77,7 +77,8 @@ TransformationModule.prototype.applyAllRules = function() {
var resolverEntry = _.find(self.resolver[elem2._jsmfId], function(x) {return x.key === elem2}) || {key: elem2, value: []};
_.each(resolverEntry.value, function(target) {
// check target type??
if (hasClass(target, relationType)) {
if (hasClass(target, relationType)
|| relationType.__name == 'Class') {
elem.source[referenceFunctionName](target);
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment