Titanium JIRA Archive
Alloy (ALOY)

[ALOY-861] When creating a new controller, add arguments statement to the JS file

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2013-10-26T01:16:01.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.3.0, 2013 Sprint 22
ComponentsSamples & Templates
Labelsqe-testadded
ReporterTim Poulsen
AssigneeTony Lukasavage
Created2013-10-25T00:11:40.000+0000
Updated2013-10-31T20:26:58.000+0000

Description

When creating a new controller, it would be great if Alloy inserted the following line automatically into the JS file:
var args = arguments[0] || {};
It would save me typing it every time.

Comments

  1. Tony Lukasavage 2013-10-26

    PR: https://github.com/appcelerator/alloy/pull/259

    Create a new alloy app

    Run alloy generate controller mycontroller

    Ensure that the generated controller has as its first line the following:

       var args = arguments[0] || {};
       
  2. Federico Casali 2013-10-31

    Verified working as expected. TiSDK 3.2.0.v20131030184044 CLI 3.2.0 Alloy 1.3.0 Closing.

JSON Source