warn_bad_name should not use global name

warn_bad_name in get_name should use the local variable name_or_data not name
pull/3160/head
Sukneet 8 years ago committed by GitHub
parent 782e9cedb3
commit ca5e39a481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save