summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/_base
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/src/freeipa/_base')
-rw-r--r--install/ui/src/freeipa/_base/Builder.js2
-rw-r--r--install/ui/src/freeipa/_base/Provider.js8
-rw-r--r--install/ui/src/freeipa/_base/debug.js41
3 files changed, 48 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/_base/Builder.js b/install/ui/src/freeipa/_base/Builder.js
index e487aa542..890a98a49 100644
--- a/install/ui/src/freeipa/_base/Builder.js
+++ b/install/ui/src/freeipa/_base/Builder.js
@@ -366,7 +366,7 @@ define(['dojo/_base/declare',
var temp = lang.clone(preop);
this.spec_mod.mod(spec, temp);
this.spec_mod.del_rules(temp);
- lang.mixin(spec, preop);
+ lang.mixin(spec, temp);
}
}
return spec;
diff --git a/install/ui/src/freeipa/_base/Provider.js b/install/ui/src/freeipa/_base/Provider.js
index b2e55aed3..fddb45aba 100644
--- a/install/ui/src/freeipa/_base/Provider.js
+++ b/install/ui/src/freeipa/_base/Provider.js
@@ -44,7 +44,11 @@
* @class _base.Provider
*
*/
-define(['dojo/_base/declare','dojo/_base/lang'], function(declare, lang) {
+define([
+ 'dojo/_base/declare',
+ 'dojo/_base/lang',
+ './debug'],
+ function(declare, lang, debug) {
var undefined;
var Provider = declare(null, {
@@ -177,7 +181,7 @@ define(['dojo/_base/declare','dojo/_base/lang'], function(declare, lang) {
}
var ret = value || alternate;
- if (!ret && key) {
+ if (!ret && key && debug.provider_missing_value) {
window.console.log('No value for:'+key);
}
diff --git a/install/ui/src/freeipa/_base/debug.js b/install/ui/src/freeipa/_base/debug.js
new file mode 100644
index 000000000..1332aa7dd
--- /dev/null
+++ b/install/ui/src/freeipa/_base/debug.js
@@ -0,0 +1,41 @@
+/* Authors:
+ * Petr Vobornik <pvoborni@redhat.com>
+ *
+ * Copyright (C) 2014 Red Hat
+ * see file 'COPYING' for use and warranty information
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+define([], function() {
+
+ /**
+ * Debug module
+ *
+ * One can set flags to enable console output of various messages.
+ *
+ * """
+ * var debug = require('freeipa._base.debug');
+ * debug.provider_missing_value = true;
+ * """
+ *
+ * Currently used flags
+ *
+ * - provider_missing_value
+ *
+ * @class _base.debug
+ */
+ return {
+ provider_missing_value: false
+ };
+}); \ No newline at end of file