Renamed ClayConfig.getSettings() to ClayConfig.serialize()

This commit is contained in:
Keegan
2016-03-10 21:00:44 +11:00
parent 0873f5eba2
commit 1142d1adee
4 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ var clayConfig = new ClayConfig(settings, config, $mainForm, clayMeta);
$mainForm.on('submit', function() {
// Set the return URL depending on the runtime environment
location.href = returnTo +
encodeURIComponent(JSON.stringify(clayConfig.getSettings()));
encodeURIComponent(JSON.stringify(clayConfig.serialize()));
});
// Run the custom function in the context of the ClayConfig
+2 -2
View File
@@ -155,8 +155,8 @@ function ClayConfig(settings, config, $rootContainer, meta) {
/**
* @returns {Object}
*/
self.getSettings = function() {
_checkBuilt('getSettings');
self.serialize = function() {
_checkBuilt('serialize');
_.eachObj(_itemsByAppKey, function(appKey, item) {
_settings[appKey] = item.get();
});