**** BEGIN LOGGING AT Fri Jan 23 02:59:59 2015 Jan 23 08:17:13 morning! **** BEGIN LOGGING AT Fri Jan 23 08:40:48 2015 Jan 23 10:40:40 is there a list anywhere for the names of included sources? Why does enyo.Jsonpsource react to "jsonp"? And how is the localStorage source called? :( Jan 23 10:53:14 ok.. I understood now.. I have to create the sources myself? Jan 23 10:59:21 hm.. somehow the doc is a bit broken for me or important parts are missing. For example collection->comperator does not really explain how that method should look (i.e. what parameters, what return is expected). It has a "see also" that mentions "enyo.Collection~Comparator", but clicking on it does nothing. Jan 23 11:00:02 Is that just me? Or is this information missing? What does the link in the see also section do? Similar is for the options-parameter. Can't find a description of it. :-/ Jan 23 16:38:49 Garfonso: it looks like you can define a comparator functionand it will be used if you collection.sort without passing a sorting function Jan 23 16:39:15 so, comparator should behave like Array.sort Jan 23 17:39:47 G'day enyoers. I have a string that contains a control's name "app.$.dataCollectionName". How can I access the control itself? Jan 23 17:41:02 I know if it was just "dataCollectionName" I could do app.$[dataCollectionNameString], but I don't know how to do that when it contains the top level variable. Jan 23 17:41:07 trex0051: well, I know a bad practice way to do it Jan 23 17:41:12 but... Jan 23 17:41:13 eval? Jan 23 17:41:15 yea Jan 23 17:41:23 why do you have that string? Jan 23 17:42:01 I have a kind that accepts the dataCollection as a value Jan 23 17:43:33 so how did you get a string? Jan 23 17:44:23 I pass it to the kind that way {kind:"myKind",dataCollection:"app.$.dataCollectionName"} Jan 23 17:44:38 why? Jan 23 17:44:50 just pass the data collection Jan 23 17:45:24 well, the datarepeater takes the collection as a string for one. Jan 23 17:45:34 also, I thought you could only pass strings Jan 23 17:45:35 :) Jan 23 17:46:14 o.o Jan 23 17:46:27 If I can pass the collection itself, is there a way that I can get the string designation to pass to the dataRepeater. Jan 23 17:46:59 dataRepeater does not take a string... Jan 23 17:50:39 Looking at a sample from sugardave, I see he init's the collection and then passes it via set("controller",TheCollection); I suppose I could do that :) So, can I pass the dataCollection in the kind's decleration, or do I need to create the kind and then set the dataCollection? Jan 23 18:13:14 "controller"? that's OLD code :D Jan 23 18:14:28 trex0051: simpistic answer: this["app.$.dataCollectionName"] can also work Jan 23 18:15:50 but I would investigate other ways, personally....maybe later you can show me some code Jan 23 18:17:42 trex0051: to your last question, you can set the collection in the kind's declaration, but if it's a kind you made (not something like DataList/Repeater), then you might need to do something in your kind's collectionChanged method to do some things....it just depends on what you're trying to do Jan 23 18:19:21 Thanks sugardave. The controller is how I set the collection that the DataRepeater is using. Is there a different way? Jan 23 18:20:26 Now that I'm setting the controller by passing it to the kind, the DataRepeater seems to not be populating properly. Jan 23 18:20:44 what Enyo version? Jan 23 18:21:05 2.5.1 Jan 23 18:21:22 so controller is an arbitrary property you made for your kind? Jan 23 18:21:51 (I think nothing internally uses a controller property to set up an enyo.Controller) Jan 23 18:22:04 No, it's something from enyo.DataRepeater Jan 23 18:22:13 hmm, let me look at something Jan 23 18:23:09 trex0051: you got a paste/fiddle? Jan 23 18:23:38 let me give you a paste of my kind. It'd be too hard to get into a fiddle. Jan 23 18:23:57 it looks like DataRepeater is just setting up a map from controller to collection. The framework team will tell you to only use the "collection" property on it Jan 23 18:24:30 http://pastebin.com/pP9fDStJ Jan 23 18:26:42 trex0051: I would totally use bindings for this Jan 23 18:26:58 bindings ftw! Jan 23 18:27:01 {from: "dataCollection", to: "$.dataCollection.collection"} Jan 23 18:27:49 would that be on the DataRepeater Kind? Jan 23 18:28:16 no, you would have a bindings:[] on IFO.ImageBoard kind Jan 23 18:28:51 then that biding would essentially read "from this.dataCollection to my DataRepeater's collection" Jan 23 18:30:01 and that would replace my code in create that assigns the dataCollections controller? Jan 23 18:30:28 yep Jan 23 18:31:57 and then when I include the kind ( http://pastebin.com/UZs3yitG ), do I still need to assign the collection on the create? Jan 23 18:32:26 include = use Jan 23 18:33:52 I would probably do it where I declare the WishlistBoard kind. So, it would be {kind: "WishlistBoard", dataCollection: "app.$.wishlistBoardCollection"} Jan 23 18:33:54 Well, doing it the binding way made my app actually work :) Jan 23 18:34:05 then you can kill the create override completely Jan 23 18:34:29 exellent! Jan 23 18:34:35 s/exe/exce/ Jan 23 18:34:49 oh, we lost our bot? booooooo Jan 23 18:35:10 Then, passing by a string I have my origional problem. Would you then use the this[dataCollection] within the kind when I need to manipulate the collection directly? Jan 23 18:36:11 I think I am confused about your problem....on a meeting for a bit, we can revisit later Jan 23 18:36:18 Thanks Jan 23 18:41:31 this["app.$.wishlistBoardCollection"] doesn't seem to work :( Jan 23 18:42:13 anyone else know a way to access a global variable without using eval if you have it as a string? Jan 23 18:55:07 trex0051 you could use Array.prototype.reduce, example : http://jsfiddle.net/toxigenicpoem/04voss17/ Jan 23 19:08:00 thanks dmanderson. Trying to wrap my mind around that :) Jan 23 19:08:09 np! **** ENDING LOGGING AT Sat Jan 24 02:59:59 2015