Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19632] Alloy widget always converts argument type to string

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsparity
ReporterDavid He
AssigneeUnknown
Created2015-08-01T22:43:22.000+0000
Updated2018-02-28T19:55:56.000+0000

Description

Pass the argument as follows will result in all arguments - i.e ratable, rate being converted to String type in widget.js
<Widget src="com.tourist.components.rating" ratable=false rate=3 size=20 bottom=55.5/>
However, if I attach arguments to a view as below
<View id="my_view" ratable=false rate=3 size=20 bottom=55.5/>
_.isBoolean(my_view.ratable) === true; //true!
I think we need make widget behave the same as view in terms of arguments type.

Comments

  1. Papia Chowdhury 2015-08-11

    Hello [~jialhe85@gmail.com], Could you please attach full test case and steps to reproduce this issue. Thanks.

JSON Source