fix indentation

This commit is contained in:
fewieden 2017-02-08 00:05:28 +01:00
parent 2f71a43420
commit 6cb3cf8747
4 changed files with 59 additions and 59 deletions

View file

@ -203,7 +203,7 @@ var Module = Class.extend({
* argument callback function - Function called when done.
*/
loadStyles: function (callback) {
this.loadDependencies("getStyles", callback);
this.loadDependencies("getStyles", callback);
},
/* loadScripts()
@ -221,24 +221,24 @@ var Module = Class.extend({
* argument funcName string - Function name to call to get scripts or styles.
* argument callback function - Function called when done.
*/
loadDependencies: function (funcName, callback) {
var self = this;
var dependencies = this[funcName]();
loadDependencies: function (funcName, callback) {
var self = this;
var dependencies = this[funcName]();
var loadNextDependency = function () {
if (dependencies.length > 0) {
var nextDependency = dependencies[0];
Loader.loadFile(nextDependency, self, function () {
dependencies = dependencies.slice(1);
loadNextDependency();
});
} else {
callback();
}
};
var loadNextDependency = function () {
if (dependencies.length > 0) {
var nextDependency = dependencies[0];
Loader.loadFile(nextDependency, self, function () {
dependencies = dependencies.slice(1);
loadNextDependency();
});
} else {
callback();
}
};
loadNextDependency();
},
loadNextDependency();
},
/* loadScripts()
* Load all required scripts by requesting the MM object to load the files.