Skip to content

Commit a21e472

Browse files
committed
Renamed Layer to Group as per mailing list feedback
1 parent 35eca06 commit a21e472

3 files changed

Lines changed: 28 additions & 24 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ var Range = require('../../utils/array/Range');
66
var Actions = require('../../actions/');
77
var Sprite = require('../sprite/Sprite');
88

9-
var Layer = new Class({
9+
var Group = new Class({
1010

1111
initialize:
1212

13-
function Layer (state, children)
13+
function Group (state, children)
1414
{
1515
this.state = state;
1616

@@ -19,7 +19,7 @@ var Layer = new Class({
1919
this.classType = Sprite;
2020
},
2121

22-
// Layer management methods:
22+
// Group management methods:
2323

2424
add: function (child)
2525
{
@@ -453,4 +453,4 @@ var Layer = new Class({
453453

454454
});
455455

456-
module.exports = Layer;
456+
module.exports = Group;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
var Group = require('./Group');
2+
var FactoryContainer = require('../FactoryContainer');
3+
4+
var GroupFactory = {
5+
6+
KEY: 'group',
7+
8+
add: function (children)
9+
{
10+
return new Group(this.state, children);
11+
},
12+
13+
make: function (config)
14+
{
15+
var group = new Group(this.state);
16+
17+
group.createFromConfig(config);
18+
19+
return group;
20+
}
21+
22+
};
23+
24+
module.exports = FactoryContainer.register(GroupFactory);

v3/src/gameobjects/layer/LayerFactory.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)