**** BEGIN LOGGING AT Wed Jul 16 02:59:59 2014 Jul 16 10:48:01 hi guys, in events: onStateChanged:"", what is empty the string meaning? Jul 16 12:31:34 hello all Jul 16 12:39:00 hi Jul 16 13:13:22 dmanderson: you there? Jul 16 13:29:43 I'm guessing not… Jul 16 13:29:51 lol ikr? Jul 16 13:29:53 GodGinrai: where are you from? Jul 16 13:30:10 ikr? Jul 16 13:35:05 USA Jul 16 13:38:11 Man, I know I must be making some sort of stupid mistake with my enyo.DataList Jul 16 13:38:17 but I can't seem to figure out what Jul 16 13:40:15 I'm properly binding the collection to the DataList's collection Jul 16 13:40:22 but it is not populating the DataList Jul 16 14:07:01 can anyone tell me why this code is not working? Jul 16 14:07:08 { kind: "enyo.DataList", name: "main", style: "height: 50px;", components: [ Jul 16 14:07:13 { components: [ Jul 16 14:07:21 { name: "catalogName" } Jul 16 14:07:25 ], bindings: [ Jul 16 14:07:30 { from: ".model.name", to: ".$.catalogName.content" } Jul 16 14:07:35 ]} Jul 16 14:07:41 ]}, Jul 16 14:07:46 specifically Jul 16 14:08:37 I have the DataList's collection bound here: Jul 16 14:08:41 { from: ".collection", to: ".$.main.collection" }, Jul 16 14:09:49 the collection correctly gets populated Jul 16 14:10:06 but the List never populates based on its collection Jul 16 14:58:04 :/ Jul 16 15:26:01 morning/afternoon/evening enyoers Jul 16 15:28:21 :) Jul 16 15:29:34 dmanderson: finally! Jul 16 15:29:41 read the scrollback dmanderson Jul 16 15:29:58 I must be missing something obvious Jul 16 15:30:04 and it is driving me crazy :( Jul 16 15:31:50 No good! let me look at this :) Jul 16 15:57:47 morning people Jul 16 16:00:34 lol Jul 16 16:00:44 joins, says morning, then quits 3 minutes later XD Jul 16 16:13:24 GodGinrai here is an example using datalist http://jsfiddle.net/toxigenicpoem/DF4KD/ Jul 16 16:13:46 line 6-14 I think are the important parts you are after Jul 16 16:15:14 dmanderson: yes. But I don't see what is different about my code Jul 16 16:15:45 Can you throw it all in a fiddle? :) Jul 16 16:16:14 dmanderson: let me see if I can Jul 16 16:22:02 dmanderson: http://jsfiddle.net/qBgSz/1/ Jul 16 16:22:06 Ignore the extra crap Jul 16 16:29:15 it’s there, looks like it’s hidden behind some stuff. Jul 16 16:29:20 I can see it getting tossed in the dom Jul 16 16:29:35 enyo.$[“testKind_control_catalogName”] Jul 16 16:29:40 wow Jul 16 16:29:43 that's frustrating Jul 16 16:29:45 because Jul 16 16:29:56 that's not what happens with the api call I replaced with that Jul 16 16:30:00 :/ Jul 16 16:34:24 something to do with the panel styling Jul 16 16:34:39 nah Jul 16 16:34:52 the panel styling is only why you can't see that control in the working version Jul 16 16:35:00 I just changed the code to pull from the API Jul 16 16:35:20 and it doesn't get populated :( Jul 16 16:35:52 http://jsfiddle.net/toxigenicpoem/qBgSz/2/ Jul 16 16:36:44 Where is the API being called into? Jul 16 16:37:22 I call it in the callAPI function Jul 16 16:37:41 and set the collection in an anonymous function provided to ws.response Jul 16 16:38:28 Is that able to be put into the fiddle? With the simple collection being added it appears to be working properly Jul 16 16:39:31 Yea, I'm trying to narrow down something for you Jul 16 16:39:38 you can't access the API url Jul 16 16:39:47 but I think the problem is not related to the response Jul 16 16:40:59 here you go: http://jsfiddle.net/qBgSz/3/ Jul 16 16:41:15 it seems to happen when it is in the anonymous function Jul 16 16:58:46 Hmm that still seems to work for me http://jsfiddle.net/toxigenicpoem/qBgSz/4/ Jul 16 16:59:26 using google.com was creagting an XHR violation Jul 16 16:59:29 so I used yql pipes Jul 16 17:00:07 :\ Jul 16 17:00:19 When I do it with the API url Jul 16 17:00:22 that doesn't work Jul 16 17:00:56 XHR violation as well? Jul 16 17:00:58 brb Jul 16 17:01:09 what would an XHR violation be? Jul 16 17:09:12 be back in a bit Jul 16 17:09:16 picking up lunch Jul 16 17:18:45 k np Jul 16 17:32:38 ok Jul 16 17:32:40 dmanderson: Jul 16 17:32:46 In the fiddle Jul 16 17:32:51 when I try to access the APi Jul 16 17:32:53 *API Jul 16 17:32:57 I get CORS blocked Jul 16 17:33:02 Yeah Jul 16 17:33:04 but I don't get CORS blocked in my own code Jul 16 17:33:10 when I test it Jul 16 17:33:16 Hmm Jul 16 19:52:49 Do models have any methods on them that are called when they're created? Jul 16 20:00:44 create() Jul 16 20:11:50 hmmm Jul 16 20:22:01 doesn't seem to work Jul 16 20:22:12 http://jsfiddle.net/q5C2N/ Jul 16 20:22:20 unless I'm just doing this wrong Jul 16 20:39:20 well Jul 16 20:39:28 I don't know why create isn't working properly Jul 16 20:39:33 but constructor is: http://jsfiddle.net/q5C2N/1/ Jul 16 20:39:43 Create should work the way you were trying to use it Jul 16 20:39:48 I would ask dmanderson why it isn't Jul 16 20:40:02 anyways, I'm leaving work, I'll be on later Jul 16 21:52:35 chall it looks like models don’t use a create method Jul 16 21:52:49 https://github.com/enyojs/enyo/blob/master/source/data/Model.js Jul 16 22:00:44 yeah, I'd tried constructor at one point, but it didn't seem to be working Jul 16 22:00:57 turns out the problem was that I didn't understand how collections make models Jul 16 22:01:09 ah I was going to suggest looking at the collections Jul 16 22:01:10 :) **** ENDING LOGGING AT Thu Jul 17 02:59:59 2014