Skip to content
Browse files

refactor remove EnvironmentBase.setEnvironment

  • Loading branch information...
1 parent dca6478 commit 12a4429895ade842357a523ef0cdc0be34d4b744 @jakub-g jakub-g committed with divdavem Feb 26, 2013
Showing with 5 additions and 20 deletions.
  1. +1 −16 src/aria/core/environment/EnvironmentBase.js
  2. +4 −4 test/aria/core/environment/Customizations.js
View
17 src/aria/core/environment/EnvironmentBase.js
@@ -123,22 +123,7 @@ Aria.classDefinition({
*/
checkApplicationSettings : function (name) {
return aria.core.AppEnvironment.applicationSettings[name];
- },
-
- /**
- * This method is deprecated. Please use aria.core.AppEnvironment.setEnvironment instead.<br />
- * Stores the application variables. Please refer to documentation for parameter types.
- * @public
- * @param {Object} cfg Configuration object
- * @param {aria.core.JsObject.Callback} cb Method to be called after the setting is done
- * @param {Boolean} update flag to update existing application settings, when false will overwrite existing with
- * new settings.
- * @deprecated
- */
- setEnvironment : function (cfg, callback, merge) {
- this.$logWarn("The setEnvironment method on this object is deprecated. Please use aria.core.AppEnvironment.setEnvironment instead.");
- aria.core.AppEnvironment.setEnvironment(cfg, callback, merge);
}
}
-});
+});
View
8 test/aria/core/environment/Customizations.js
@@ -69,7 +69,7 @@ Aria.classDefinition({
},
testGetFlowCP : function () {
- aria.core.environment.Customizations.setEnvironment({
+ aria.core.AppEnvironment.setEnvironment({
customization : {
descriptor : {
flows : {
@@ -84,7 +84,7 @@ Aria.classDefinition({
},
testGetTemplateCP : function () {
- aria.core.environment.Customizations.setEnvironment({
+ aria.core.AppEnvironment.setEnvironment({
customization : {
descriptor : {
templates : {
@@ -114,7 +114,7 @@ Aria.classDefinition({
},
testSetCustomizations : function () {
- aria.core.environment.Customizations.setEnvironment({
+ aria.core.AppEnvironment.setEnvironment({
customization : {
descriptor : {
flows : {
@@ -166,4 +166,4 @@ Aria.classDefinition({
this.notifyTestEnd('testAsyncInvalidCustomizationDescriptor');
}
}
-});
+});

0 comments on commit 12a4429

Please sign in to comment.
Something went wrong with that request. Please try again.