Skip to content

Commit

Permalink
Fixed module to not load required module that is in ignoreModules lis…
Browse files Browse the repository at this point in the history
…t. Added static property _content to classes to store extended class content.
  • Loading branch information
ekelokorpi committed Dec 13, 2017
1 parent c6052f4 commit 81942c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/engine/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ var game = {
Engine version.
@property {String} version
**/
version: '2.0.0',
version: '2.0.1',
/**
@property {Boolean} _booted
@private
Expand Down Expand Up @@ -297,6 +297,7 @@ var game = {
this[name] = this[extend].extend(content);
this[name]._name = name;
this[name]._extend = extend;
this[name]._content = content;
this._currentModule.classes.push({ name: name, extend: extend });
return this[name];
},
Expand Down Expand Up @@ -486,6 +487,7 @@ var game = {
var i, modules = Array.prototype.slice.call(arguments);
for (i = 0; i < modules.length; i++) {
var name = modules[i];
if (this.config.ignoreModules && this.config.ignoreModules.indexOf(name) !== -1) continue;
if (name && this._current.requires.indexOf(name) === -1) this._current.requires.push(name);
}
return this;
Expand Down

0 comments on commit 81942c6

Please sign in to comment.