**** BEGIN LOGGING AT Mon Dec 08 02:59:59 2014 Dec 08 03:00:07 ok. trying to find the site I used to use for code collaboration... Dec 08 03:00:10 thanks Dec 08 03:01:08 stypi! Dec 08 03:04:01 Here is the link to the code for the kind: http://code.stypi.com/lrmanfre/myapp%20-%20orCollection.js Dec 08 03:04:20 Here is the link to the code for some of the data: http://code.stypi.com/lrmanfre/data.json Dec 08 03:05:55 All I basically want to do is retrieve the Rooms that a given staff member will be in. The data is mock data Dec 08 03:07:41 The staffuserid identifies the staff member, and the orname is the room name. Dec 08 03:08:40 only real optimization i see would be caching each step in a different variable, so you don't have to use the "dot" operation so much Dec 08 03:09:17 yes that was going to be my next step. At least it would look a bit cleaner Dec 08 03:10:39 Thanks. I think that at least will improve readibility Dec 08 03:12:05 might have a look at running it through jsperf.com to test revisions, but i really don't see anything obvious that jumps out there. Unless it gets to be a lot larger, it's probably not going to be much of a problem to handle that though Dec 08 03:18:05 ok Dec 08 03:19:04 synergv handles waaaaay more json than that (as well as a lot of XML and HTML parsing) and it isn't visibly slow until i put it on a Mac or an old Palm phone. :-) Dec 08 03:33:27 Yeah, those operations are usually pretty fast unless you're dealing with huge amounts of data. Dec 08 03:42:28 ok cool thanks Dec 08 08:12:05 the number of things that i don't grasp in enyo 2 is larger than the number of things i do grasp. :D Dec 08 08:32:38 Roy__: there's a copy-pasta bug here on line 86/87 https://github.com/enyojs/layout/blob/master/imageview/source/ImageView.js Dec 08 08:33:04 looks like one of them should be onload = undefined not onerror = undefined Dec 08 08:33:34 i'd submit a pull but i don't have a fork/clone Dec 08 08:40:24 EricBlade: And this is redundant: this.src && this.src.length>0 Dec 08 08:41:00 this.src might not have a length property at all Dec 08 08:41:22 And wont' isn't a word. :) Dec 08 08:42:04 I suppose it might not... but if it doesn't then you've done something wrong. ;P Dec 08 08:42:42 Back to sleep Dec 08 08:43:31 in the case of those two lines, one is a potential memory leak, whereas checking this.src && this.src.length prevents an error when the user does setSrc({ oops: imagescantbeobjects }); Dec 08 09:15:10 morning Dec 08 09:15:15 gm Dec 08 09:15:49 what is the best way for an enyo 2 app to recognize that it gets closed? Dec 08 09:17:02 body unload .. not sure if enyo has some way of wrapping that or not, though. Dec 08 09:18:18 ok. Dec 08 09:22:03 https://github.com/enyojs/enyo/wiki/Event-Handling talks about it.. ;) Dec 08 09:25:43 i hate having to look up every single kind in the manual... i need more practice Dec 08 10:21:50 so.. need some advice from a css master. :-) (waits for the crickets) Dec 08 10:22:36 on webOS 3.0.5, transform: rotate() rotates exactly the opposite direction as everything else. Dec 08 10:23:11 is there some way that that can be handled without writing different css includes for legacy webOS ? Dec 08 10:57:01 also, note to self.. resetting a list takes a massive amount of cpu power on a mobile device. Dec 08 10:57:18 when compared to my desktop anyway :D Dec 08 12:38:43 Hi all Dec 08 12:38:59 I am trying to incorporate Jasmine test descriptions in my enyo applicatoin Dec 08 12:39:07 application* Dec 08 12:39:26 Do anyone have suggestions on a standard way of doing that ? Dec 08 12:57:24 Okay, bye all, Will ping agail later Dec 08 15:15:58 hmpf.. somehow onunload is not firing for me. :( Dec 08 15:17:19 weird Dec 08 15:17:32 browser problem, maybe? Dec 08 15:20:49 just tried firefox (usually develop in chrome) and it still does not work. Probably I'm missing something. Dec 08 15:22:26 hrm Dec 08 17:25:00 Garfonso: maybe go all the way back to index.html, add an unload tag to your body, and check if it's fired Dec 08 17:40:19 huh. classes: "enyo-fit" on an Input inside an InputDecorator results in the input being half the height and a quarter the width of the InputDecorator .. yet width: 100%; height: 100% works Dec 08 17:45:48 morning enyos Dec 08 17:46:05 gm Dec 08 18:03:04 ge Dec 08 18:11:45 I’ve been using width:100% on Inputs inside InputDecorators. I found it very odd that that was neccessary Dec 08 18:19:28 List.refresh() followed by List.scrollToBottom() sometimes results in only half-a-list Dec 08 18:20:07 er, scrollToEnd(). Dec 08 18:20:37 I wonder if List should have a "reverse direction" flag, where bottom is the default direction. for efficiency. Dec 08 18:21:31 i also really should attempt to figure out the whole data binding thing before i progress any farther with this app Dec 08 18:39:46 Data binging is very convenient for the simple stuff, but less useful as you get more complicated. Dec 08 18:49:16 yeah, I noticed that, too. Dec 08 18:49:31 at least the lists & repeaters are a bit restrictive. Dec 08 18:53:09 hmm. seems like I need to create a PulldownList that can be pulled up as well, and has an option to reverse it's normal direction. (or does List already have something to reverse itself... hmm..) Dec 08 19:09:05 Hmm, I find the data binding to be great even in complex cases, would love some use cases where you feel it’s too harsh Garfonso! Dec 08 19:09:29 Garfonso is finding binding to be harsh? In what way? Dec 08 19:09:48 like, slows down the app or something? Dec 08 19:11:21 * GodGinrai wishes there was a recall function for this channel Dec 08 19:35:16 I heard it was better in the git master, but on 2.4 it is tiresome to re-order a datalist. Just one example Dec 08 19:35:49 speed seems fine. Also it get's rid of some overhead. :) For me it is still a good thing Dec 08 19:38:31 shouldn't reordering a data list be as simple as reordering a collection? Dec 08 19:41:42 gotta go to a meeting, I'll talk more about this later Dec 08 19:42:56 GodGinrai there is a recall ;-) http://logs.nslu2-linux.org/livelogs/enyojs/ Dec 08 19:46:13 The data binding works well enough for browsing, where data flows 1-way from a data source to UI, but it gets awkward for apps that edit data. The fooChanged() methods don’t tell whether the change come from UI (in which case it should be saved back to the data source) or from the data source. Dec 08 19:47:49 Have you played around with two-way data bindings vs fooChanged methods? Dec 08 20:23:16 dmanderson: that's not a recall Dec 08 20:23:27 A recall lets you see the last messages before you joined a channel Dec 08 20:23:43 a logsite that is delayed by a day does not serve that purpose Dec 08 20:25:12 dmanderson: he's using a 2-way data binding Dec 08 20:25:41 that’s whyt here was a winky face, ;-) Dec 08 20:25:41 he's talking about that problem we solved using a transform before Dec 08 20:25:45 ah Dec 08 20:25:50 except there wasn't Dec 08 20:25:52 Ah that makes sense Dec 08 20:25:59 oh wait Dec 08 20:26:07 the winky face comment was about the recall Dec 08 20:26:18 thought you meant for DougReeder's XD Dec 08 20:26:27 :D Dec 08 20:31:49 Garfonso: how do you have trouble re-ordering a list? Dec 08 20:32:23 even in 2.4, it should be as simple as reordering an array and then passing it into Collection.reset() **** ENDING LOGGING AT Tue Dec 09 02:59:58 2014