mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Make sure value exists.
This commit is contained in:
parent
ed06901fb3
commit
d78103339d
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ var ProxyContext = new function() {
|
|||
} else {
|
||||
var capitalized = Base.capitalize(name);
|
||||
param['set' + capitalized] = function(value) {
|
||||
var logValue = value.substring ? '\'' + value + '\'' : value,
|
||||
var logValue = value && value.substring ? '\'' + value + '\'' : value,
|
||||
string = 'ctx.' + name + ' = ' + logValue + ';';
|
||||
console.log(this.getIndentation() + string);
|
||||
return this._ctx[name] = value;
|
||||
|
|
Loading…
Reference in a new issue