Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7173] MobileWeb: Setters not getting defined when a getter is defined

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-01-14T21:52:29.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sSprint 2012-01, Release 2.0.0, Release 1.8.1
ComponentsMobileWeb
Labelsstage
ReporterChris Barber
AssigneeChris Barber
Created2012-01-13T11:55:08.000+0000
Updated2017-03-03T23:21:19.000+0000

Description

In the lang.mixProps() function, the getter checking logic short circuits the if statement and the setter checking never fires.
if (is(descriptor, "Object") && ((getter = is(descriptor.get, "Function")) || (setter = is(descriptor.set, "Function")))) {

Comments

  1. Chris Barber 2012-01-13

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/1173
  2. Chris Barber 2012-01-14

    Not sure how this got reopened, but this has been fixed, reviewed, tested, and merged into master already.
  3. Lee Morris 2017-03-03

    Closing ticket as MobileWeb is no longer supported.

JSON Source