[AC-1004] Undefined is not an object (evaluating 'copy.colors')","line":48,"column":79 in alloy.js
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2015-02-04T14:43:18.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | TCSupportTriage |
Reporter | Vincent.wenshuo |
Assignee | Mauro Parra-Miranda |
Created | 2015-02-04T12:03:58.000+0000 |
Updated | 2016-03-08T07:37:20.000+0000 |
Description
line 660
// Don't bring in undefined values
} else if (typeof copy !== 'undefined') {
target[name] = copy;
} else if(copy.colors) {
// don't deep merge the colors property of backgroundGradient
target[name] = copy;
}
the second else if check is wrong because "copy" will be undefined.
Compare with the latest version of node.extend
https://github.com/dreamerslab/node.extend/blob/master/lib/extend.js
there is no such code.
Hello, please read the guide on how to report issues: http://docs.appcelerator.com/titanium/3.0/#!/guide/How_to_Submit_a_Bug_Report and provide at least: - Description of the issue - Steps to reproduce the issue - Expected results - Actual results Best Regards