@@ -146,28 +146,24 @@ shapes.draw = function(gd, index, opt, value) {
146146 }
147147
148148 updateShape ( gd , index , opt , value ) ;
149- return ;
150149} ;
151150
152151function replaceAllShapes ( gd , newShapes ) {
153152 gd . layout . shapes = newShapes ;
154153 shapes . supplyLayoutDefaults ( gd . layout , gd . _fullLayout ) ;
155154 shapes . drawAll ( gd ) ;
156- return ;
157155}
158156
159157function deleteAllShapes ( gd ) {
160158 delete gd . layout . shapes ;
161159 gd . _fullLayout . shapes = [ ] ;
162160 shapes . drawAll ( gd ) ;
163- return ;
164161}
165162
166163function updateAllShapes ( gd , opt , value ) {
167164 for ( var i = 0 ; i < gd . _fullLayout . shapes . length ; i ++ ) {
168165 shapes . draw ( gd , i , opt , value ) ;
169166 }
170- return ;
171167}
172168
173169function deleteShape ( gd , index ) {
@@ -186,8 +182,6 @@ function deleteShape(gd, index) {
186182 . attr ( 'data-index' , String ( i ) ) ;
187183 shapes . draw ( gd , i ) ;
188184 }
189-
190- return ;
191185}
192186
193187function insertShape ( gd , index , newShape ) {
@@ -209,8 +203,6 @@ function insertShape(gd, index, newShape) {
209203 . attr ( 'data-index' , String ( i ) ) ;
210204 shapes . draw ( gd , i ) ;
211205 }
212-
213- return ;
214206}
215207
216208function updateShape ( gd , index , opt , value ) {
@@ -311,8 +303,6 @@ function updateShape(gd, index, opt, value) {
311303 path . call ( Plotly . Drawing . setClipUrl ,
312304 'clip' + gd . _fullLayout . _uid + clipAxes ) ;
313305 }
314-
315- return ;
316306}
317307
318308function decodeDate ( convertToPx ) {
0 commit comments