Browse files

refactor remove legacy way of declaring objects in an interface

objects in interface definition are no longer represented as {},
but either as {$type: "Object"} or a shortcut notation "Object"
  • Loading branch information...
1 parent b8abd21 commit b4ede3d14abb73deb3c7487b1b680777c98ac0b0 @jakub-g jakub-g committed with divdavem Mar 1, 2013
Showing with 2 additions and 18 deletions.
  1. +2 −18 src/aria/core/Interfaces.js
View
20 src/aria/core/Interfaces.js
@@ -62,16 +62,6 @@
};
/**
- * Contains the definition for an object defined in the interface by: {}. This way of defining an object in an
- * interface is deprecated and will be removed in a future release of Aria Templates.
- * @type {Object}
- * @private
- */
- var __simpleObjectDefinition = {
- $type : "Object"
- };
-
- /**
* Contains the definition for an array defined in the interface by: []
* @type {Object}
* @private
@@ -98,13 +88,7 @@
} else if (typeUtils.isArray(def)) {
return __simpleArrayDefinition;
} else if (typeUtils.isObject(def)) {
- if (def.$type == null) {
- this.$logWarn("Member '%2' in interface '%1' uses a deprecated way of declaring an object in an interface. Please use {$type:'Object'} instead of {}.", [
- classpath, member]);
- res = __simpleObjectDefinition;
- } else {
- res = def;
- }
+ res = def;
} else {
return null;
}
@@ -513,4 +497,4 @@
}
}
});
-})();
+})();

0 comments on commit b4ede3d

Please sign in to comment.