[TIMOB-19632] Alloy widget always converts argument type to string
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | parity |
Reporter | David He |
Assignee | Unknown |
Created | 2015-08-01T22:43:22.000+0000 |
Updated | 2018-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.
Hello [~jialhe85@gmail.com], Could you please attach full test case and steps to reproduce this issue. Thanks.