@@ -63,7 +63,7 @@ plots.hasSimpleAPICommandBindings = commandModule.hasSimpleAPICommandBindings;
6363plots . findSubplotIds = function findSubplotIds ( data , type ) {
6464 var subplotIds = [ ] ;
6565
66- if ( plots . subplotsRegistry [ type ] === undefined ) return subplotIds ;
66+ if ( ! plots . subplotsRegistry [ type ] ) return subplotIds ;
6767
6868 var attr = plots . subplotsRegistry [ type ] . attr ;
6969
@@ -90,7 +90,7 @@ plots.findSubplotIds = function findSubplotIds(data, type) {
9090plots . getSubplotIds = function getSubplotIds ( layout , type ) {
9191 var _module = plots . subplotsRegistry [ type ] ;
9292
93- if ( _module === undefined ) return [ ] ;
93+ if ( ! _module ) return [ ] ;
9494
9595 // layout must be 'fullLayout' here
9696 if ( type === 'cartesian' && ( ! layout . _has || ! layout . _has ( 'cartesian' ) ) ) return [ ] ;
@@ -131,7 +131,7 @@ plots.getSubplotIds = function getSubplotIds(layout, type) {
131131 *
132132 */
133133plots . getSubplotData = function getSubplotData ( data , type , subplotId ) {
134- if ( plots . subplotsRegistry [ type ] === undefined ) return [ ] ;
134+ if ( ! plots . subplotsRegistry [ type ] ) return [ ] ;
135135
136136 var attr = plots . subplotsRegistry [ type ] . attr ,
137137 subplotData = [ ] ,
@@ -167,7 +167,7 @@ plots.getSubplotData = function getSubplotData(data, type, subplotId) {
167167 * @return {array } array of calcdata traces
168168 */
169169plots . getSubplotCalcData = function ( calcData , type , subplotId ) {
170- if ( plots . subplotsRegistry [ type ] === undefined ) return [ ] ;
170+ if ( ! plots . subplotsRegistry [ type ] ) return [ ] ;
171171
172172 var attr = plots . subplotsRegistry [ type ] . attr ;
173173 var subplotCalcData = [ ] ;
0 commit comments