mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -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 {
|
} else {
|
||||||
var capitalized = Base.capitalize(name);
|
var capitalized = Base.capitalize(name);
|
||||||
param['set' + capitalized] = function(value) {
|
param['set' + capitalized] = function(value) {
|
||||||
var logValue = value.substring ? '\'' + value + '\'' : value,
|
var logValue = value && value.substring ? '\'' + value + '\'' : value,
|
||||||
string = 'ctx.' + name + ' = ' + logValue + ';';
|
string = 'ctx.' + name + ' = ' + logValue + ';';
|
||||||
console.log(this.getIndentation() + string);
|
console.log(this.getIndentation() + string);
|
||||||
return this._ctx[name] = value;
|
return this._ctx[name] = value;
|
||||||
|
|
Loading…
Reference in a new issue