@@ -231,9 +231,9 @@ mpl.figure.prototype._init_canvas = function () {
231
231
mpl . figure . prototype . _init_toolbar = function ( ) {
232
232
var fig = this ;
233
233
234
- var nav_element = $ ( '<div/>' ) ;
235
- nav_element . attr ( 'style' , 'width: 100%' ) ;
236
- this . root . append ( nav_element ) ;
234
+ var toolbar = $ ( '<div/>' ) ;
235
+ toolbar . attr ( 'style' , 'width: 100%' ) ;
236
+ this . root . append ( toolbar ) ;
237
237
238
238
// Define a callback function for later on.
239
239
function toolbar_event ( event ) {
@@ -275,15 +275,15 @@ mpl.figure.prototype._init_toolbar = function () {
275
275
button . append ( icon_img ) ;
276
276
button . append ( tooltip_span ) ;
277
277
278
- nav_element . append ( button ) ;
278
+ toolbar . append ( button ) ;
279
279
}
280
280
281
281
var fmt_picker_span = $ ( '<span/>' ) ;
282
282
283
283
var fmt_picker = $ ( '<select/>' ) ;
284
284
fmt_picker . addClass ( 'mpl-toolbar-option ui-widget ui-widget-content' ) ;
285
285
fmt_picker_span . append ( fmt_picker ) ;
286
- nav_element . append ( fmt_picker_span ) ;
286
+ toolbar . append ( fmt_picker_span ) ;
287
287
this . format_dropdown = fmt_picker [ 0 ] ;
288
288
289
289
for ( var ind in mpl . extensions ) {
@@ -305,7 +305,7 @@ mpl.figure.prototype._init_toolbar = function () {
305
305
) ;
306
306
307
307
var status_bar = $ ( '<span class="mpl-message"/>' ) ;
308
- nav_element . append ( status_bar ) ;
308
+ toolbar . append ( status_bar ) ;
309
309
this . message = status_bar [ 0 ] ;
310
310
} ;
311
311
0 commit comments