Files
2012-02-21 01:15:00 -05:00

1 line
3.7 KiB
JSON

[{"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894213.04388, "message": "yes, from the js", "group_id": 8922, "id": 704203}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894224.580615, "message": "that is like document.createElement", "group_id": 8922, "id": 704208}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894041.9813969, "message": "so i think it would be useful to be able to do <component ... class=\"myclass\" .../> in your markup", "group_id": 8922, "id": 704140}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894091.0137241, "message": "then be able to do some subset of operations on it, like hide(), show(), toggle(), etc", "group_id": 8922, "id": 704157}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894062.1037481, "message": "and then be able to access that component using jquery as $(\".myclass\")", "group_id": 8922, "id": 704148}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894107.4815719, "message": "perhaps width(), things like that", "group_id": 8922, "id": 704164}, {"user_id": 29629, "stars": [], "topic_id": 19689, "date_created": 1302894204.5177791, "message": "so you would still use new Component", "group_id": 8922, "id": 704197}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894275.0006239, "message": "in the A js you could do $(\".foo\").hide()", "group_id": 8922, "id": 704225}, {"user_id": 29629, "stars": [], "topic_id": 19689, "date_created": 1302894229.065798, "message": "oh i see", "group_id": 8922, "id": 704212}, {"user_id": 29629, "stars": [], "topic_id": 19689, "date_created": 1302894181.4005041, "message": "interesting", "group_id": 8922, "id": 704182}, {"user_id": 29629, "stars": [], "topic_id": 19689, "date_created": 1302894233.6527331, "message": "you mean as a way to refer to component instances", "group_id": 8922, "id": 704215}, {"user_id": 29629, "stars": [], "topic_id": 19689, "date_created": 1302894242.6295781, "message": "$(.mycomponent)", "group_id": 8922, "id": 704220}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894197.948935, "message": "to do this i would have to implement enough of the DomElement API for jQuery to be able to work on Component instances", "group_id": 8922, "id": 704193}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894314.3887341, "message": "currently you'd set ref=\"foo\" in your markiup", "group_id": 8922, "id": 704239}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894369.6550701, "message": "but in either case the component would be opaque", "group_id": 8922, "id": 704258}, {"user_id": 29629, "stars": [], "topic_id": 19689, "date_created": 1302894239.1621511, "message": "so from another component", "group_id": 8922, "id": 704219}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894255.416513, "message": "like suppose you have a component B inside of component A", "group_id": 8922, "id": 704221}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894294.0590761, "message": "and B would be a component with the class attr set to \"foo\"", "group_id": 8922, "id": 704230}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894298.6430881, "message": "somehow", "group_id": 8922, "id": 704234}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894401.94326, "message": "you wouldn't be able to do like $(\"*\", $(\".foo\")) to traverse inside of the B component", "group_id": 8922, "id": 704268}, {"user_id": 29630, "stars": [], "topic_id": 19689, "date_created": 1302894327.66364, "message": "and then access it in the js of A via this.foo.hide()", "group_id": 8922, "id": 704245}]