File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ var Range = require('../../utils/array/Range');
66var Actions = require ( '../../actions/' ) ;
77var 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 ;
Original file line number Diff line number Diff line change 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 ) ;
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments