Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1004] Undefined is not an object (evaluating 'copy.colors')","line":48,"column":79 in alloy.js

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2015-02-04T14:43:18.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
LabelsTCSupportTriage
ReporterVincent.wenshuo
AssigneeMauro Parra-Miranda
Created2015-02-04T12:03:58.000+0000
Updated2016-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.

Comments

  1. Mauro Parra-Miranda 2015-02-04

    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

JSON Source