**** BEGIN LOGGING AT Thu Feb 09 02:59:58 2012 Feb 09 04:31:54 hey folks, I've been creating an application using enyo 2.0 and I've come across an issue and can't seem to understand why it's happening. Unfortunately, I don't have it whittled down to a minimum case to show it in code yet, but hopefully my description can make sense Feb 09 04:32:03 I have my main application control, which has two controls, a navigation bar at the top and then main_content Feb 09 04:33:04 the nav bar calls a changeContext function on the main app when a click occurs, the changeContext function calls destroy() on the main_content control Feb 09 04:33:05 then it calls createComponent() for the appropriate one Feb 09 04:34:27 in one of the controls, I have dynamically created components as a kind of list, with different data loaded each time and each time you click the associated navbar entry, the content just gets appended to it Feb 09 04:34:36 however, the create() call is made on the object each time Feb 09 04:34:47 err, Control Feb 09 04:36:54 I can provide the associated source if anyone thinks they can help track it down, it's just completely uncommented Feb 09 05:54:35 m0ngr31: yeah i posted about it on enyojs.com forum Feb 09 08:30:27 if you guys saw the hack i just wrote, you would laugh/cry Feb 09 08:37:37 ok you guys can see it .. http://forums.enyojs.com/discussion/70/flick-scrolling-also-generating-clicks#Item_12 Feb 09 09:05:44 hey burg get your app sql'ing? Feb 09 09:17:16 hey EricBlade . i managed to create my schema and add data with this library : https://github.com/onecrayon/database-webos/blob/master/javascripts/database-enyo.js ; just have to figure out now how to only populate the database at first run Feb 09 09:18:12 do a query on the database to see if it's already configured, if it isn't, run the setup Feb 09 09:19:20 i never did grasp one crayon's database code, but i also haven't tried now that i've spent a few months working with javascript Feb 09 09:53:12 EricBlade, i have one question thought. My main kind is App, which contains db and some-other-kind. How can i access db inside some-other-kind functions ? Feb 09 09:54:50 EricBlade, just found out that i can this.parent.$.db , but what if i want to access it in a kind from some-other-kind? can i somehow pass it as a reference, so i don`t have to do this.parent.parent.parent.parent.etc.parent.$.db ? Feb 09 09:55:23 you could make a reference to it in enyo.application .. or use the event handling system to pass things down Feb 09 10:07:10 EricBlade, some references would help me a lot, because using the data from database i`ll generate views from same kind, but with different content and different css - so it would help me a lot something like new SomeKind(params) and insert that kind into a parent Feb 09 10:08:44 probably the smart thing to do is just have the kind that holds the database info actually do all the handling of it .. but the quick way is to just do enyo.application.database = whatever you access your database with Feb 09 10:15:29 EricBlade, like this: http://codepad.org/1lcqY2p6 ? Feb 09 10:15:59 yea Feb 09 10:16:47 great, it works, thank you. what about passing some arguments to new kinds when i attach them? Feb 09 10:17:18 attach them? Feb 09 10:19:57 so let`s say i query the database and display all entries titles in my first page (view). then, when i click on any, it will change to another page (view) with details for that item, but also different css (same Kind, but with something like: addClass("item-" + item.title) Feb 09 10:22:30 umm.. i guess you could make a function that does that Feb 09 14:48:03 EricBlade, i updated that gist with Hybrid2 yesterday, noticed a bug in it Feb 09 14:48:17 but i tested it with with shapespin on my veer which is 2.1 Feb 09 14:49:29 what is the difference between eventNode and node in one enyo component? Feb 09 18:19:05 PuffTheMagic: now you're making me question the wisdom of demonstrating Bootstrap + Enyo at the meetup. Way to go Feb 09 18:19:20 lol Feb 09 18:19:31 "I was going to show you something, but PuffTheMagic said it was pointless. You lose." Feb 09 19:07:17 buzzkill Feb 09 19:29:32 "Watch me pull a rabbit out of a hat!" Feb 09 19:47:57 silly amazon *sigh* Feb 09 19:50:16 If any of you play on submitting to the amazon android store make sure that your "Site Thumbnail" image looks exactly like your "Device Icon" except for size. Feb 09 19:50:35 I had submitted a site thumbnail without the green background from my icon and they rejected me for that. Feb 09 19:50:45 lol Feb 09 21:52:17 sugardave, lol Feb 09 21:52:19 sorry Feb 09 21:52:54 idk what enyo is with out widgets Feb 09 21:57:20 PuffTheMagic: yeah, you have to derive your own value from the core, I guess. In my mind it acts as an advanced application scaffold and I'm comfortable with the component system. For newbies, it's probably harder to see value (until we have some UiComponents) Feb 09 22:00:14 sugardave, i actually can see the value in enyo core, im just not a web dev, i just want to make a landing site for my domain that looks/works like an enyo app Feb 09 22:02:24 PuffTheMagic: no problem, well except you need webkit for now Feb 09 22:02:34 and there are no ui widgets...but hey :) Feb 09 22:02:39 thats it why i dont already have this done :D Feb 09 22:03:02 at the core your web site can be run as an app, piece of cake Feb 09 22:06:35 PuffTheMagic: so that's basically why my messing around is just that...I'm sort of devoid of ideas at the moment and I want some easy-to-use widget goodness, too ;) **** ENDING LOGGING AT Fri Feb 10 02:59:57 2012