mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-31 13:40:29 +08:00
warn_bad_name should not use global name
warn_bad_name in get_name should use the local variable name_or_data not name
This commit is contained in:
parent
782e9cedb3
commit
ca5e39a481
@ -954,7 +954,7 @@ define([
|
||||
**/
|
||||
|
||||
if(typeof(name_or_data) === 'string'){
|
||||
warn_bad_name(name);
|
||||
warn_bad_name(name_or_data);
|
||||
if(this.exists(name_or_data)){
|
||||
return name_or_data;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user