[ALOY-861] When creating a new controller, add arguments statement to the JS file
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-10-26T01:16:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.3.0, 2013 Sprint 22 |
Components | Samples & Templates |
Labels | qe-testadded |
Reporter | Tim Poulsen |
Assignee | Tony Lukasavage |
Created | 2013-10-25T00:11:40.000+0000 |
Updated | 2013-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.
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:
Verified working as expected. TiSDK 3.2.0.v20131030184044 CLI 3.2.0 Alloy 1.3.0 Closing.