Skip to content

Commit 78ffd41

Browse files
committed
More specific includes
1 parent a2dc792 commit 78ffd41

2 files changed

Lines changed: 20 additions & 12 deletions

File tree

src/gameobjects/GameObject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
var Class = require('../utils/Class');
8-
var Components = require('./components');
8+
var ComponentsToJSON = require('./components/ToJSON');
99
var DataManager = require('../data/DataManager');
1010
var EventEmitter = require('eventemitter3');
1111

@@ -440,7 +440,7 @@ var GameObject = new Class({
440440
*/
441441
toJSON: function ()
442442
{
443-
return Components.ToJSON(this);
443+
return ComponentsToJSON(this);
444444
},
445445

446446
/**

src/gameobjects/graphics/Graphics.js

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@
77
var BaseCamera = require('../../cameras/2d/BaseCamera.js');
88
var Class = require('../../utils/Class');
99
var Commands = require('./Commands');
10-
var Components = require('../components');
11-
var Ellipse = require('../../geom/ellipse/');
10+
var ComponentsAlpha = require('../components/Alpha');
11+
var ComponentsBlendMode = require('../components/BlendMode');
12+
var ComponentsDepth = require('../components/Depth');
13+
var ComponentsMask = require('../components/Mask');
14+
var ComponentsPipeline = require('../components/Pipeline');
15+
var ComponentsTransform = require('../components/Transform');
16+
var ComponentsVisible = require('../components/Visible');
17+
var ComponentsScrollFactor = require('../components/ScrollFactor');
18+
19+
var Ellipse = require('../../geom/ellipse/Ellipse');
1220
var GameObject = require('../GameObject');
1321
var GetFastValue = require('../../utils/object/GetFastValue');
1422
var GetValue = require('../../utils/object/GetValue');
@@ -117,14 +125,14 @@ var Graphics = new Class({
117125
Extends: GameObject,
118126

119127
Mixins: [
120-
Components.Alpha,
121-
Components.BlendMode,
122-
Components.Depth,
123-
Components.Mask,
124-
Components.Pipeline,
125-
Components.Transform,
126-
Components.Visible,
127-
Components.ScrollFactor,
128+
ComponentsAlpha,
129+
ComponentsBlendMode,
130+
ComponentsDepth,
131+
ComponentsMask,
132+
ComponentsPipeline,
133+
ComponentsTransform,
134+
ComponentsVisible,
135+
ComponentsScrollFactor,
128136
Render
129137
],
130138

0 commit comments

Comments
 (0)