@@ -63,7 +63,7 @@ exports.get = function() {
63
63
return {
64
64
defs : {
65
65
valObjects : valObjectMeta ,
66
- metaKeys : UNDERSCORE_ATTRS . concat ( [ 'description' , 'role' , ' editType', 'impliedEdits' ] ) ,
66
+ metaKeys : UNDERSCORE_ATTRS . concat ( [ 'description' , 'editType' , 'impliedEdits' ] ) ,
67
67
editType : {
68
68
traces : editTypes . traces ,
69
69
layout : editTypes . layout
@@ -600,14 +600,14 @@ function getFramesAttributes() {
600
600
}
601
601
602
602
function formatAttributes ( attrs ) {
603
- mergeValTypeAndRole ( attrs ) ;
603
+ mergeValType ( attrs ) ;
604
604
formatArrayContainers ( attrs ) ;
605
605
stringify ( attrs ) ;
606
606
607
607
return attrs ;
608
608
}
609
609
610
- function mergeValTypeAndRole ( attrs ) {
610
+ function mergeValType ( attrs ) {
611
611
function makeSrcAttr ( attrName ) {
612
612
return {
613
613
valType : 'string' ,
@@ -622,17 +622,12 @@ function mergeValTypeAndRole(attrs) {
622
622
function callback ( attr , attrName , attrs ) {
623
623
if ( exports . isValObject ( attr ) ) {
624
624
if ( attr . valType === 'data_array' ) {
625
- // all 'data_array' attrs have role 'data'
626
- attr . role = 'data' ;
627
625
// all 'data_array' attrs have a corresponding 'src' attr
628
626
attrs [ attrName + 'src' ] = makeSrcAttr ( attrName ) ;
629
627
} else if ( attr . arrayOk === true ) {
630
628
// all 'arrayOk' attrs have a corresponding 'src' attr
631
629
attrs [ attrName + 'src' ] = makeSrcAttr ( attrName ) ;
632
630
}
633
- } else if ( isPlainObject ( attr ) ) {
634
- // all attrs container objects get role 'object'
635
- attr . role = 'object' ;
636
631
}
637
632
}
638
633
@@ -651,7 +646,6 @@ function formatArrayContainers(attrs) {
651
646
652
647
attrs [ attrName ] = { items : { } } ;
653
648
attrs [ attrName ] . items [ itemName ] = attr ;
654
- attrs [ attrName ] . role = 'object' ;
655
649
}
656
650
657
651
exports . crawl ( attrs , callback ) ;
0 commit comments