File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 34
34
: host (.formatted ) {padding-left : 0m ; text-indent : 0 ;}
35
35
</ style > < content > </ content > </ template >
36
36
</ polymer-element >
37
- < polymer-element name ="cxx-attribute " constructor ="CxxFunctionAttributeElement " noscript >
37
+ < polymer-element name ="cxx-attribute " constructor ="CxxFunctionAttributeElement ">
38
38
< template >
39
39
< style >
40
40
: host {dis play: block; margin- to p: .5em; margin- botto m: .5em;}
45
45
</ style >
46
46
< dt > {{heading}}:</ dt > < dd > < content > </ content > </ dd >
47
47
</ template >
48
+ < script >
49
+ Polymer ( 'cxx-attribute' , {
50
+ attached : function ( ) {
51
+ var parent = this . parentNode ;
52
+ while ( parent instanceof HTMLModElement )
53
+ parent = parent . parentNode ;
54
+ if ( ! ( parent instanceof CxxFunctionElement ) ) {
55
+ console . warn ( '<' + this . localName +
56
+ '> element must be a child of <cxx-function> ' +
57
+ '(ignoring <ins> and <del>):' ,
58
+ this )
59
+ }
60
+ } ,
61
+ } ) ;
62
+ </ script >
48
63
</ polymer-element >
49
64
< polymer-element name ="cxx-requires " extends ="cxx-attribute ">
50
65
< script >
You can’t perform that action at this time.
0 commit comments