Skip to content
This repository was archived by the owner on Dec 9, 2021. It is now read-only.

Commit 826f193

Browse files
committed
update enable and disable code.
1 parent 4459663 commit 826f193

File tree

15 files changed

+30
-30
lines changed

15 files changed

+30
-30
lines changed

examples/EventBubbling/assets/scripts/EventBubblingApp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ define(function (require, exports, module) { // jshint ignore:line
5555
* @overridden Stage.enable
5656
*/
5757
EventBubblingApp.prototype.enable = function () {
58-
if (this.isEnabled === true) return this;
58+
if (this.isEnabled === true) { return this; }
5959

6060
this.addEventListener(BaseEvent.CHANGE, this.onBubbled, this);
6161
//EventBroker.addEventListener(BaseEvent.CHANGE, this.onBubbled, this);
@@ -70,7 +70,7 @@ define(function (require, exports, module) { // jshint ignore:line
7070
* @overridden Stage.disable
7171
*/
7272
EventBubblingApp.prototype.disable = function () {
73-
if (this.isEnabled === false) return this;
73+
if (this.isEnabled === false) { return this; }
7474

7575
this.removeEventListener(BaseEvent.CHANGE, this.onBubbled, this);
7676

examples/EventBubbling/assets/scripts/view/GrandparentView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ define(function (require, exports, module) { // jshint ignore:line
5454
* @overridden DOMElement.enable
5555
*/
5656
GrandparentView.prototype.enable = function () {
57-
if (this.isEnabled === true) return this;
57+
if (this.isEnabled === true) { return this; }
5858

5959
this.addEventListener(BaseEvent.CHANGE, this._onBubbled, this);
6060

@@ -67,7 +67,7 @@ define(function (require, exports, module) { // jshint ignore:line
6767
* @overridden DOMElement.disable
6868
*/
6969
GrandparentView.prototype.disable = function () {
70-
if (this.isEnabled === false) return this;
70+
if (this.isEnabled === false) { return this; }
7171

7272
this.removeEventListener(BaseEvent.CHANGE, this._onBubbled, this);
7373

examples/EventBubbling/assets/scripts/view/ParentView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ define(function (require, exports, module) { // jshint ignore:line
5555
* @overridden DOMElement.enable
5656
*/
5757
ParentView.prototype.enable = function () {
58-
if (this.isEnabled === true) return this;
58+
if (this.isEnabled === true) { return this; }
5959

6060
this.addEventListener(BaseEvent.CHANGE, this._onBubbled, this);
6161

@@ -68,7 +68,7 @@ define(function (require, exports, module) { // jshint ignore:line
6868
* @overridden DOMElement.disable
6969
*/
7070
ParentView.prototype.disable = function () {
71-
if (this.isEnabled === false) return this;
71+
if (this.isEnabled === false) { return this; }
7272

7373
this.removeEventListener(BaseEvent.CHANGE, this._onBubbled, this);
7474

examples/SimonGame/assets/scripts/SimonApp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ define(function (require, exports, module) { // jshint ignore:line
8787
* @overridden DOMElement.enable
8888
*/
8989
SimonApp.prototype.enable = function () {
90-
if (this.isEnabled === true) return this;
90+
if (this.isEnabled === true) { return this; }
9191

9292
this.addEventListener(BaseEvent.CHANGE, this._onColorButt_onClick, this);
9393

@@ -100,7 +100,7 @@ define(function (require, exports, module) { // jshint ignore:line
100100
* @overridden DOMElement.disable
101101
*/
102102
SimonApp.prototype.disable = function () {
103-
if (this.isEnabled === false) return this;
103+
if (this.isEnabled === false) { return this; }
104104

105105
this.removeEventListener(BaseEvent.CHANGE, this._onColorButt_onClick, this);
106106

examples/SimonGame/assets/scripts/components/DeviceButton.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ define(function (require, exports, module) { // jshint ignore:line
5959
* @overridden DOMElement.enable
6060
*/
6161
DeviceButton.prototype.enable = function () {
62-
if (this.isEnabled === true) return this;
62+
if (this.isEnabled === true) { return this; }
6363

6464
this.$element.addEventListener('click', this._onClick, this);
6565
this.$element.css('cursor','pointer');
@@ -71,7 +71,7 @@ define(function (require, exports, module) { // jshint ignore:line
7171
* @overridden DOMElement.disable
7272
*/
7373
DeviceButton.prototype.disable = function () {
74-
if (this.isEnabled === false) return this;
74+
if (this.isEnabled === false) { return this; }
7575

7676
this.$element.removeEventListener('click', this._onClick, this);
7777
this.$element.css('cursor','default');

examples/SimonGame/assets/scripts/view/DeviceView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ define(function (require, exports, module) { // jshint ignore:line
102102
* @overridden DOMElement.enable
103103
*/
104104
DeviceView.prototype.enable = function () {
105-
if (this.isEnabled === true) return this;
105+
if (this.isEnabled === true) { return this; }
106106

107107
this._redButton.enable();
108108
this._greenButton.enable();
@@ -116,7 +116,7 @@ define(function (require, exports, module) { // jshint ignore:line
116116
* @overridden DOMElement.disable
117117
*/
118118
DeviceView.prototype.disable = function () {
119-
if (this.isEnabled === false) return this;
119+
if (this.isEnabled === false) { return this; }
120120

121121
this._redButton.disable();
122122
this._greenButton.disable();

examples/SinglePageWebsite/assets/scripts/WebsiteApp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ define(function (require, exports, module) { // jshint ignore:line
5353
* @overridden DOMElement.enable
5454
*/
5555
WebsiteApp.prototype.enable = function () {
56-
if (this.isEnabled === true) return this;
56+
if (this.isEnabled === true) { return this; }
5757

5858
this._rootView.enable();
5959

@@ -64,7 +64,7 @@ define(function (require, exports, module) { // jshint ignore:line
6464
* @overridden DOMElement.disable
6565
*/
6666
WebsiteApp.prototype.disable = function () {
67-
if (this.isEnabled === false) return this;
67+
if (this.isEnabled === false) { return this; }
6868

6969
this._rootView.disable();
7070

examples/SinglePageWebsite/assets/scripts/view/RootView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ define(function (require, exports, module) { // jshint ignore:line
8585
* @overridden DOMElement.enable
8686
*/
8787
RootView.prototype.enable = function () {
88-
if (this.isEnabled === true) return this;
88+
if (this.isEnabled === true) { return this; }
8989

9090
if (this._currentView) {
9191
this._currentView.enable();
@@ -98,7 +98,7 @@ define(function (require, exports, module) { // jshint ignore:line
9898
* @overridden DOMElement.disable
9999
*/
100100
RootView.prototype.disable = function () {
101-
if (this.isEnabled === false) return this;
101+
if (this.isEnabled === false) { return this; }
102102

103103
if (this._currentView) {
104104
this._currentView.disable();

examples/SinglePageWebsite/assets/scripts/view/about/AboutView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ define(function (require, exports, module) { // jshint ignore:line
4343
* @overridden DOMElement.enable
4444
*/
4545
AboutView.prototype.enable = function () {
46-
if (this.isEnabled === true) return this;
46+
if (this.isEnabled === true) { return this; }
4747

4848
// Enable the child objects and add any event listeners.
4949

@@ -54,7 +54,7 @@ define(function (require, exports, module) { // jshint ignore:line
5454
* @overridden DOMElement.disable
5555
*/
5656
AboutView.prototype.disable = function () {
57-
if (this.isEnabled === false) return this;
57+
if (this.isEnabled === false) { return this; }
5858

5959
// Disable the child objects and remove any event listeners.
6060

examples/SinglePageWebsite/assets/scripts/view/contact/ContactView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ define(function (require, exports, module) { // jshint ignore:line
5050
* @overridden DOMElement.enable
5151
*/
5252
ContactView.prototype.enable = function () {
53-
if (this.isEnabled === true) return this;
53+
if (this.isEnabled === true) { return this; }
5454

5555
// Enable the child objects and add any event listeners.
5656

@@ -61,7 +61,7 @@ define(function (require, exports, module) { // jshint ignore:line
6161
* @overridden DOMElement.disable
6262
*/
6363
ContactView.prototype.disable = function () {
64-
if (this.isEnabled === false) return this;
64+
if (this.isEnabled === false) { return this; }
6565

6666
// Disable the child objects and remove any event listeners.
6767

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy