Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8999] MobileWeb: Create local aliases for constants

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-26T19:14:01.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2012-05-04T16:24:44.000+0000
Updated2018-04-04T23:20:24.000+0000

Description

There are currently 43 instances of Ti.UI.FILL and 86 instances of Ti.UI.SIZE throughout the mobile web code. In several cases, we are referencing these constants more than once in a single file. It would be more efficient and less bytes to create local aliases at the top of each module. This will speed up variable scope resolution. Other constants include: Ti.UI._LAYOUT_CONSTRAINING_VERTICAL.

Comments

  1. Lee Morris 2017-06-26

    Marking ticket as "Won't Fix" as MobileWeb has been deprecated.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source