File tree Expand file tree Collapse file tree 2 files changed +4
-23
lines changed Expand file tree Collapse file tree 2 files changed +4
-23
lines changed Original file line number Diff line number Diff line change 10
10
PolymerBase : true ,
11
11
job : Polymer . job ,
12
12
super : Polymer . super ,
13
- // TODO(sorvell): bc, created is currently a synonym for 'ready'.
14
- // We should call this in createdCallback instead of at ready time or
15
- // eliminate it.
13
+ // user entry point for element has had its createdCallback called
16
14
created : function ( ) {
17
15
} ,
18
16
// user entry point for element has shadowRoot and is ready for
19
17
// api interaction
20
18
ready : function ( ) {
21
19
} ,
22
20
createdCallback : function ( ) {
21
+ this . created ( ) ;
23
22
if ( this . ownerDocument . defaultView || this . alwaysPrepare ||
24
23
preparingElements > 0 ) {
25
24
this . prepareElement ( ) ;
45
44
preparingElements -- ;
46
45
// user entry point
47
46
this . ready ( ) ;
48
- // TODO(sorvell): bc
49
- this . created ( ) ;
50
47
} ,
51
48
enteredViewCallback : function ( ) {
52
49
if ( ! this . _elementPrepared ) {
57
54
if ( this . enteredView ) {
58
55
this . enteredView ( ) ;
59
56
}
60
- // TODO(sorvell): bc
61
- if ( this . enteredDocument ) {
62
- this . enteredDocument ( ) ;
63
- }
64
- } ,
65
- // TODO(sorvell): bc
66
- enteredDocumentCallback : function ( ) {
67
- this . enteredViewCallback ( ) ;
68
57
} ,
69
58
leftViewCallback : function ( ) {
70
59
if ( ! this . preventDispose ) {
74
63
if ( this . leftView ) {
75
64
this . leftView ( ) ;
76
65
}
77
- // TODO(sorvell): bc
78
- if ( this . leftDocument ) {
79
- this . leftDocument ( ) ;
80
- }
81
- } ,
82
- // TODO(sorvell): bc
83
- leftDocumentCallback : function ( ) {
84
- this . leftViewCallback ( ) ;
85
66
} ,
86
67
// recursive ancestral <element> initialization, oldest first
87
68
parseDeclarations : function ( p ) {
Original file line number Diff line number Diff line change 21
21
enteredView : function ( ) {
22
22
console . log ( this . localName + ': enteredView!' ) ;
23
23
} ,
24
- created : function ( ) {
24
+ ready : function ( ) {
25
25
console . log ( this . localName + ': created!' ) ;
26
26
}
27
27
} )
41
41
Polymer ( 'x-bind-obj' , {
42
42
testObj : null ,
43
43
arr : null ,
44
- created : function ( ) {
44
+ ready : function ( ) {
45
45
this . testObj = { foo : 'single' } ;
46
46
this . arr = [
47
47
{ foo : 'array 0' } ,
You can’t perform that action at this time.
0 commit comments