@@ -146,28 +146,24 @@ shapes.draw = function(gd, index, opt, value) {
146
146
}
147
147
148
148
updateShape ( gd , index , opt , value ) ;
149
- return ;
150
149
} ;
151
150
152
151
function replaceAllShapes ( gd , newShapes ) {
153
152
gd . layout . shapes = newShapes ;
154
153
shapes . supplyLayoutDefaults ( gd . layout , gd . _fullLayout ) ;
155
154
shapes . drawAll ( gd ) ;
156
- return ;
157
155
}
158
156
159
157
function deleteAllShapes ( gd ) {
160
158
delete gd . layout . shapes ;
161
159
gd . _fullLayout . shapes = [ ] ;
162
160
shapes . drawAll ( gd ) ;
163
- return ;
164
161
}
165
162
166
163
function updateAllShapes ( gd , opt , value ) {
167
164
for ( var i = 0 ; i < gd . _fullLayout . shapes . length ; i ++ ) {
168
165
shapes . draw ( gd , i , opt , value ) ;
169
166
}
170
- return ;
171
167
}
172
168
173
169
function deleteShape ( gd , index ) {
@@ -186,8 +182,6 @@ function deleteShape(gd, index) {
186
182
. attr ( 'data-index' , String ( i ) ) ;
187
183
shapes . draw ( gd , i ) ;
188
184
}
189
-
190
- return ;
191
185
}
192
186
193
187
function insertShape ( gd , index , newShape ) {
@@ -209,8 +203,6 @@ function insertShape(gd, index, newShape) {
209
203
. attr ( 'data-index' , String ( i ) ) ;
210
204
shapes . draw ( gd , i ) ;
211
205
}
212
-
213
- return ;
214
206
}
215
207
216
208
function updateShape ( gd , index , opt , value ) {
@@ -311,8 +303,6 @@ function updateShape(gd, index, opt, value) {
311
303
path . call ( Plotly . Drawing . setClipUrl ,
312
304
'clip' + gd . _fullLayout . _uid + clipAxes ) ;
313
305
}
314
-
315
- return ;
316
306
}
317
307
318
308
function decodeDate ( convertToPx ) {
0 commit comments