diff --git a/v3/src/boot/Game.js b/v3/src/boot/Game.js index 163bfd907..dd8674fff 100644 --- a/v3/src/boot/Game.js +++ b/v3/src/boot/Game.js @@ -5,17 +5,17 @@ var Device = require('../device'); var AddToDOM = require('../dom/AddToDOM'); var DOMContentLoaded = require('../dom/DOMContentLoaded'); -var VisibilityHandler = require('./VisibilityHandler'); var EventDispatcher = require('../events/EventDispatcher'); +var VisibilityHandler = require('./VisibilityHandler'); -var TimeStep = require('./TimeStep'); +var AnimationManager = require('../animation/manager/AnimationManager'); +var Cache = require('../cache/Cache'); var CreateRenderer = require('./CreateRenderer'); +var Data = require('../components/Data'); var GlobalInputManager = require('../input/GlobalInputManager'); var GlobalStateManager = require('../state/GlobalStateManager'); -var AnimationManager = require('../animation/manager/AnimationManager'); var TextureManager = require('../textures/TextureManager'); -var Data = require('../components/Data'); -var Cache = require('../cache/Cache'); +var TimeStep = require('./TimeStep'); var Game = function (config) { diff --git a/v3/src/structs/Map.js b/v3/src/structs/Map.js index eac0f14d2..b279a7c15 100644 --- a/v3/src/structs/Map.js +++ b/v3/src/structs/Map.js @@ -23,8 +23,6 @@ var Map = function (elements) } }; -Map.prototype.constructor = Map; - Map.prototype = { set: function (key, value) @@ -163,4 +161,6 @@ Map.prototype = { } }; +Map.prototype.constructor = Map; + module.exports = Map; diff --git a/v3/src/structs/Set.js b/v3/src/structs/Set.js index 104138b2c..a52fb5e66 100644 --- a/v3/src/structs/Set.js +++ b/v3/src/structs/Set.js @@ -13,8 +13,6 @@ var Set = function (elements) } }; -Set.prototype.constructor = Set; - Set.prototype = { set: function (value) @@ -177,4 +175,6 @@ Object.defineProperties(Set.prototype, { }); +Set.prototype.constructor = Set; + module.exports = Set;