Commit 1fc7f5c8 authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

JavaScript: Namespace initialization simplified.

parent 292540fa
......@@ -4,9 +4,7 @@
/* global $ */
if (!QfqNS) {
var QfqNS = {};
}
var QfqNS = QfqNS || {};
(function (n) {
'use strict';
......
......@@ -5,9 +5,8 @@
/* global $ */
/* global console */
if (!QfqNS) {
var QfqNS = {};
}
var QfqNS = QfqNS || {};
(function (n) {
'use strict';
......
......@@ -4,13 +4,8 @@
/* @depend FormGroup.js */
if (!QfqNS) {
var QfqNS = {};
}
if (!QfqNS.Element) {
QfqNS.Element = {};
}
var QfqNS = QfqNS || {};
QfqNS.Element = QfqNS.Element || {};
(function (n) {
'use strict';
......
......@@ -2,13 +2,8 @@
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
if (!QfqNS) {
var QfqNS = {};
}
if (!QfqNS.Element) {
QfqNS.Element = {};
}
var QfqNS = QfqNS || {};
QfqNS.Element = QfqNS.Element || {};
(function (n) {
'use strict';
......
......@@ -4,13 +4,8 @@
/* global $ */
if (!QfqNS) {
var QfqNS = {};
}
if (!QfqNS.Element) {
QfqNS.Element = {};
}
var QfqNS = QfqNS || {};
QfqNS.Element = QfqNS.Element || {};
(function (n) {
'use strict';
......
......@@ -2,13 +2,8 @@
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
if (!QfqNS) {
var QfqNS = {};
}
if (!QfqNS.Element) {
QfqNS.Element = {};
}
var QfqNS = QfqNS || {};
QfqNS.Element = QfqNS.Element || {};
(function (n) {
'use strict';
......
......@@ -3,14 +3,8 @@
*/
/* global $ */
if (!QfqNS) {
var QfqNS = {};
}
if (!QfqNS.Element) {
QfqNS.Element = {};
}
var QfqNS = QfqNS || {};
QfqNS.Element = QfqNS.Element || {};
(function (n) {
'use strict';
......
......@@ -2,13 +2,8 @@
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
if (!QfqNS) {
var QfqNS = {};
}
if (!QfqNS.Element) {
QfqNS.Element = {};
}
var QfqNS = QfqNS || {};
QfqNS.Element = QfqNS.Element || {};
(function (n) {
'use strict';
......
......@@ -2,14 +2,8 @@
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
if (!QfqNS) {
var QfqNS = {};
}
if (!QfqNS.Element) {
QfqNS.Element = {};
}
var QfqNS = QfqNS || {};
QfqNS.Element = QfqNS.Element || {};
(function (n) {
'use strict';
......
......@@ -4,9 +4,7 @@
/* global $ */
if (!QfqNS) {
var QfqNS = {};
}
var QfqNS = QfqNS || {};
(function (n) {
'use strict';
......
......@@ -4,9 +4,7 @@
/* global $ */
if (!QfqNS) {
var QfqNS = {};
}
var QfqNS = QfqNS || {};
(function (n) {
'use strict';
......
......@@ -4,13 +4,8 @@
/* global $ */
if (!QfqNS) {
var QfqNS = {};
}
if (!QfqNS.Helper) {
QfqNS.Helper = {};
}
var QfqNS = QfqNS || {};
QfqNS.Helper = QfqNS.Helper || {};
(function (n) {
'use strict';
......
......@@ -4,14 +4,8 @@
/* global $ */
if (!QfqNS) {
var QfqNS = {};
}
if (!QfqNS.Helper) {
QfqNS.Helper = {};
}
var QfqNS = QfqNS || {};
QfqNS.Helper = QfqNS.Helper || {};
(function (n) {
'use strict';
......
......@@ -4,9 +4,7 @@
/* global console */
if (!QfqNS) {
var QfqNS = {};
}
var QfqNS = QfqNS || {};
(function (n) {
'use strict';
......
......@@ -2,9 +2,7 @@
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
if (!QfqNS) {
var QfqNS = {};
}
var QfqNS = QfqNS || {};
(function (n) {
'use strict';
......
......@@ -2,10 +2,7 @@
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
if (!QfqNS) {
var QfqNS = {};
}
var QfqNS = QfqNS || {};
(function (n) {
'use strict';
......
......@@ -4,9 +4,7 @@
/* global $ */
if (!QfqNS) {
var QfqNS = {};
}
var QfqNS = QfqNS || {};
(function (n) {
'use strict';
......
......@@ -5,9 +5,7 @@
/* global $ */
/* global console */
if (!QfqNS) {
var QfqNS = {};
}
var QfqNS = QfqNS || {};
(function (n) {
'use strict';
......
......@@ -4,9 +4,7 @@
/* global $ */
/* global console */
if (!QfqNS) {
var QfqNS = {};
}
var QfqNS = QfqNS || {};
(function (n) {
'use strict';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment