Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Remove Console output
Browse files Browse the repository at this point in the history
Removing console output
  • Loading branch information
chadevansMX committed Mar 20, 2015
1 parent 4c1c0a0 commit 5fd5f61
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
Binary file modified dist/BooleanSlider.mpk
Binary file not shown.
18 changes: 8 additions & 10 deletions src/BooleanSlider/widget/BooleanSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
========================
@file : BooleanSlider.js
@version : 1.1
@version : 1.2
@author : Chad Evans
@copyright : Mendix Technology BV
@license : Apache License, Version 2.0, January 2004
Expand Down Expand Up @@ -49,7 +49,7 @@ require({}, [

// dijit._WidgetBase.postCreate is called after constructing the widget. Implement to do extra setup work.
postCreate: function () {
console.log(this.id + '.postCreate');
//console.log(this.id + '.postCreate');

// postCreate
var path, trueNode, falseNode;
Expand All @@ -67,14 +67,14 @@ require({}, [

trueNode = domQuery("#" + this.id + " .wgt-BooleanSlider__toggletrue");
if (trueNode && trueNode.length > 0) {
trueNode[0].textContent = this.trueValue;
domProp.set(trueNode[0], "textContent", this.trueValue);
} else {
console.log(this.id + '.postCreate - startup trueNode not found');
}

falseNode = domQuery("#" + this.id + " .wgt-BooleanSlider__togglefalse");
if (falseNode && falseNode.length > 0) {
falseNode[0].textContent = this.falseValue;
domProp.set(falseNode[0], "textContent", this.falseValue);
} else {
console.log(this.id + '.postCreate - startup falseNode not found');
}
Expand All @@ -86,10 +86,10 @@ require({}, [

// mxui.widget._WidgetBase.update is called when context is changed or initialized. Implement to re-render and / or fetch data.
update: function (obj, callback) {
console.log(this.id + '.update');
//console.log(this.id + '.update');

if (obj === null) {
console.log(this.id + '.update - We did not get any context object!');
//console.log(this.id + '.update - We did not get any context object!');
if (!domClass.contains(this.domNode, 'hidden')) {
domClass.add(this.domNode, 'hidden');
}
Expand All @@ -110,7 +110,6 @@ require({}, [

// mxui.widget._WidgetBase.enable is called when the widget should enable editing. Implement to enable editing if widget is input widget.
enable: function () {
console.log(this.id + '.enable');
if (/true/.test(this.editable)) {
this._editable = true;
}
Expand All @@ -119,7 +118,6 @@ require({}, [

// mxui.widget._WidgetBase.disable is called when the widget should disable editing. Implement to disable editing if widget is input widget.
disable: function () {
console.log(this.id + '.disable');
this._editable = false;
this._loadData();
},
Expand Down Expand Up @@ -147,7 +145,7 @@ require({}, [
},

_loadData: function () {
console.log(this.id + '._loadData');
//console.log(this.id + '._loadData');

var control, nodeIndex, node,
// get the data value to load
Expand Down Expand Up @@ -201,7 +199,7 @@ require({}, [
},

_resetSubscriptions: function () {
console.log(this.id + '._resetSubscriptions');
//console.log(this.id + '._resetSubscriptions');

// Release handle on previous object, if any.
this._cleanupSubscriptions();
Expand Down
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="BooleanSlider" version="1.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="BooleanSlider" version="1.2" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="BooleanSlider/BooleanSlider.xml"/>
</widgetFiles>
Expand Down
Binary file modified test/Test.mpr
Binary file not shown.
Binary file modified test/widgets/BooleanSlider.mpk
Binary file not shown.

0 comments on commit 5fd5f61

Please sign in to comment.