Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3297] Allow arguments[0] in tss

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusClosed
ResolutionWon't Fix
Resolution Date2013-01-30T15:47:02.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy
Labelsalloy, style
ReporterHilko Lantinga
AssigneeTony Lukasavage
Created2013-01-30T15:31:02.000+0000
Updated2016-03-08T07:57:43.000+0000

Description

Alloy.createController('bottombarbutton', {backgroundImage : 'img/bottombarbutton/tab_btn_r.png'}); "#bottombarbutton": { backgroundSelectedImage : 'img/bottombarbutton/tab_btn_p.png', backgroundImage: arguments[0].backgroundImage, top: 1, height: 69, width: 128 } [ERROR] :  [ERROR] Expected "Alloy", "L", "Ti", "Titanium", "WPATH", "[", "false", "null", "true", "{", comment, end of line, number, string or whitespace but "a" found.

Comments

  1. Tony Lukasavage 2013-01-30

    conversation here: https://groups.google.com/forum/?fromgroups=#!topic/appc-ti-alloy/5hV7FpWPWxs In short, adding arguments into the TSS is messy and unintuitive for other developers inspecting code. Dynamic styling and ALOY-362 would make this unnecessary.
  2. Ritu Agrawal 2014-01-12

    Closing this ticket in favor of Dynamic Styling and ALOY-362 as per Tony's comments.

JSON Source