You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by an...@apache.org on 2015/06/29 04:54:59 UTC
incubator-ignite git commit: # ignite-843 Cleanup.
Repository: incubator-ignite
Updated Branches:
refs/heads/ignite-843 6bb992eea -> e8c4b6e11
# ignite-843 Cleanup.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/e8c4b6e1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/e8c4b6e1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/e8c4b6e1
Branch: refs/heads/ignite-843
Commit: e8c4b6e11ff7287230967e8ce8e389c8d29d8f3d
Parents: 6bb992e
Author: Andrey <an...@gridgain.com>
Authored: Mon Jun 29 09:55:30 2015 +0700
Committer: Andrey <an...@gridgain.com>
Committed: Mon Jun 29 09:55:30 2015 +0700
----------------------------------------------------------------------
.../public/javascripts/controllers/caches.js | 2 -
.../public/javascripts/controllers/clusters.js | 2 -
.../public/javascripts/controllers/common.js | 57 --------------------
3 files changed, 61 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e8c4b6e1/modules/webconfig/nodejs/public/javascripts/controllers/caches.js
----------------------------------------------------------------------
diff --git a/modules/webconfig/nodejs/public/javascripts/controllers/caches.js b/modules/webconfig/nodejs/public/javascripts/controllers/caches.js
index 488abff..591b697 100644
--- a/modules/webconfig/nodejs/public/javascripts/controllers/caches.js
+++ b/modules/webconfig/nodejs/public/javascripts/controllers/caches.js
@@ -18,8 +18,6 @@
configuratorModule.controller('cachesController', ['$scope', '$alert', '$http', 'commonFunctions', function ($scope, $alert, $http, commonFunctions) {
$scope.swapSimpleItems = commonFunctions.swapSimpleItems;
$scope.joinTip = commonFunctions.joinTip;
- $scope.getFldMdl = commonFunctions.getFldMdl;
- $scope.setFldMdl = commonFunctions.setFldMdl;
$scope.getModel = commonFunctions.getModel;
$scope.atomicities = [
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e8c4b6e1/modules/webconfig/nodejs/public/javascripts/controllers/clusters.js
----------------------------------------------------------------------
diff --git a/modules/webconfig/nodejs/public/javascripts/controllers/clusters.js b/modules/webconfig/nodejs/public/javascripts/controllers/clusters.js
index de17b42..84ca3d3 100644
--- a/modules/webconfig/nodejs/public/javascripts/controllers/clusters.js
+++ b/modules/webconfig/nodejs/public/javascripts/controllers/clusters.js
@@ -18,8 +18,6 @@
configuratorModule.controller('clustersController', ['$scope', '$alert', '$http', 'commonFunctions', function($scope, $alert, $http, commonFunctions) {
$scope.swapSimpleItems = commonFunctions.swapSimpleItems;
$scope.joinTip = commonFunctions.joinTip;
- $scope.getFldMdl = commonFunctions.getFldMdl;
- $scope.setFldMdl = commonFunctions.setFldMdl;
$scope.getModel = commonFunctions.getModel;
$scope.templates = [
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e8c4b6e1/modules/webconfig/nodejs/public/javascripts/controllers/common.js
----------------------------------------------------------------------
diff --git a/modules/webconfig/nodejs/public/javascripts/controllers/common.js b/modules/webconfig/nodejs/public/javascripts/controllers/common.js
index 3e0353c..4d1e411 100644
--- a/modules/webconfig/nodejs/public/javascripts/controllers/common.js
+++ b/modules/webconfig/nodejs/public/javascripts/controllers/common.js
@@ -62,63 +62,6 @@ configuratorModule.service('commonFunctions', function () {
});
return lines.join("");
- },
- getFldMdl: function(obj, path) {
- path = path.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties
- path = path.replace(/^\./, ''); // strip a leading dot
-
- var a = path.split('.');
-
- for (var i = 0; i < a.length; ++i) {
- var k = a[i];
-
- if (k in obj) {
- obj = obj[k];
- }
- else {
- return;
- }
- }
-
- return obj;
- },
- setFldMdl: function(obj, path, value) {
- path = path.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties
- path = path.replace(/^\./, ''); // strip a leading dot
-
- var a = path.split('.');
-
- for (var i = 0; i < a.length - 1; ++i) {
- var k = a[i];
-
- if (k in obj) {
- if (!obj[k]) {
- obj[k] = {};
- }
- }
- else {
- obj[k] = {};
- }
-
- obj = obj[k];
- }
-
- if (value) {
- obj[a[a.length - 1]] = value;
- }
- else {
- delete obj[a[a.length - 1]];
- }
-
- //
- //if (group && group.model && field.group)
- // backupItem[group.model][field.group][field.model] = value;
- //else if (group && group.model)
- // backupItem[group.model][field.model] = value;
- //else if (field.group)
- // backupItem[field.group][field.model] = value;
- //else
- // backupItem[field.model] = value;
}
}
});