**** BEGIN LOGGING AT Tue Aug 19 02:59:59 2014 Aug 19 07:55:54 morning :) Aug 19 11:17:06 morning channel Aug 19 13:46:01 hi guys Aug 19 14:04:23 hi SimpsonTP Aug 19 14:04:58 GodGinrai: did you solve your problem? Aug 19 14:05:07 or was it a wrong hunch? Aug 19 14:05:11 pjetr: Yes, I did Aug 19 14:05:21 the WebOS TV VM runs fine now :) Aug 19 14:06:59 nicely done Aug 19 14:17:57 what are you going to create for the TV? Aug 19 14:18:56 That remains to be decided Aug 19 14:19:19 I'm trying to decide what I would appreciate on the TV that I could probably make Aug 19 14:19:23 and work from there Aug 19 14:25:22 morning enyoers Aug 19 14:27:42 hi dmanderson Aug 19 14:35:50 morning dmanderson, long time since you were online during y working hours :) Aug 19 14:36:14 ha yes :) Aug 19 14:37:44 dmanderson, tried to reach you last week ;) Aug 19 14:43:27 translation: You have failed me Aug 19 14:43:28 :P Aug 19 14:59:26 great GodGinrai, you've chased him away Aug 19 14:59:31 ^^ Aug 19 15:06:20 Aug 19 15:06:25 * pjetr out Aug 19 15:32:34 re Aug 19 15:37:20 wb Aug 19 16:03:19 * SimpsonTP is still confused how to implement stages in a app Aug 19 16:04:05 SimpsonTP: stages? Aug 19 16:04:26 yeah e.g. from a login page to the app Aug 19 16:04:34 or a initial config page Aug 19 16:04:59 you would use enyo.Router for a lot of that Aug 19 16:08:04 hmmm Aug 19 16:08:14 never heard of that :) Aug 19 16:10:24 it was added around the same time as the MVC stuff Aug 19 16:10:40 look in the API for how to use it Aug 19 16:10:53 and sugardave might be able to help you in its use (I still have not used it) Aug 19 16:11:24 hmm not sure this is what I want Aug 19 16:13:23 how so? Aug 19 16:14:27 its URI related Aug 19 16:14:45 the old mojo scenes is what I'm looking for Aug 19 16:15:53 SimpsonTP: like this? http://metaviewsoft.de/wordpress/?p=443 Aug 19 16:16:41 yeah like that Aug 19 16:16:47 a bit at least Aug 19 16:17:32 Herrie was looking for something like this Aug 19 16:17:50 and is now looking at enyo.Router ;) Aug 19 16:18:10 the URI is simply how you keep state Aug 19 16:18:27 I see that, but not what I mean Aug 19 16:18:37 so what are you meaning? Aug 19 16:18:43 e.g. I want a app which will show a initial config screen if none is found Aug 19 16:19:39 SimpsonTP: So you want different views? Aug 19 16:20:49 yup Aug 19 16:22:26 SimpsonTP: I would assume that on change of state, you would simply set a new view for the enyo.Application Aug 19 16:26:25 hmm Aug 19 16:26:46 there should be more demo's for this Aug 19 16:27:07 More demos definitely should happen. Aug 19 16:30:33 enyo.Application.view = new View() Aug 19 16:31:09 where view is a kind ? Aug 19 16:31:19 no special view kind Aug 19 16:31:25 any control can be used as a view Aug 19 16:31:42 ok Aug 19 16:32:42 I was suprised to learn Ionic for angular doesn’t have multiple views as part of it’s paradigm Aug 19 16:34:29 so how would one switch view ? Aug 19 16:35:03 setView I believe Aug 19 16:35:16 k Aug 19 16:38:47 dmanderson: how do you refer to the app from within a view again? Aug 19 16:39:31 this.app should be available if you are using enyo.Application Aug 19 16:40:03 But for encapsulation you may want to bubble Aug 19 16:40:20 dmanderson: just trying to build a PoC Aug 19 16:40:53 Yeah, you can be dirty and this.app it up! Aug 19 16:42:26 hrmmm Aug 19 16:47:48 dmanderson: you can only change the view w/ set("view" Aug 19 16:47:52 not setView Aug 19 16:47:53 :\ Aug 19 16:48:09 >:-| Aug 19 16:48:13 also, while it is changing the view, it does not appear to be rendering the new view? Aug 19 16:48:41 I’ve not tried set(“view”, new View()) to be honest Aug 19 16:49:09 dmanderson: I set it to the string Aug 19 16:49:26 for the view name Aug 19 16:49:38 http://jsfiddle.net/09bhefc3/ Aug 19 16:50:46 how complex are these views/this system? Can you not just have enyo.Panels and switch to whatever index you need for the view (or make a new one and insert it)? You could tie that with enyo.Router as well Aug 19 16:51:12 if you're talking about the old Mojo system with stage/scene controllers, well, that's not how we do it anymore :D Aug 19 16:51:23 sugardave: I have done this before, however I don't know what SimpsonTP wanted Aug 19 16:51:32 oic Aug 19 16:51:34 he's gone now Aug 19 16:51:37 yup Aug 19 16:51:37 oops Aug 19 16:52:11 However, I do think that using set("view",...) should work, because what's the point of the ViewController otherwise? Aug 19 16:53:16 not sure that works. I think there is some specialness, as the view property is just a string and I don't think setting it after instatiation will make a new kind...unless things have changed since the last time I tried it Aug 19 16:53:41 calling render after worked : http://jsfiddle.net/toxigenicpoem/09bhefc3/1/ Aug 19 16:53:53 there you go Aug 19 16:53:55 but I agree it should be as easy as set(‘view’, ‘string’); Aug 19 16:54:33 dmanderson: I was about to try that to see if it worked Aug 19 16:54:34 lol Aug 19 16:55:03 :) Aug 19 16:56:30 It seems however that using set("view",...) followed by render doesn't work Aug 19 16:56:40 I'm curious now what the differences are Aug 19 16:56:51 between what you did and what that setter does Aug 19 17:03:00 dmanderson: Aug 19 17:03:04 I figured out why Aug 19 17:03:16 render doesn't work after set("view",...) Aug 19 17:04:19 Wonder why it throws an undefined/null error Aug 19 17:04:20 this becomes null in that function Aug 19 17:04:30 because set destroys the old view Aug 19 17:04:35 hence, you can't call the apps render Aug 19 17:04:47 see updated code that fixes the problem here: http://jsfiddle.net/09bhefc3/2/ Aug 19 17:04:58 *app's Aug 19 17:05:48 This is a problem that probably wouldn't exist if we did bubble up the event and handled the view change in the application Aug 19 17:07:40 hey Zectbumo, here's a fiddle that you might find interesting... it shows how to change views: http://jsfiddle.net/09bhefc3/2/ Aug 19 17:07:55 Anyway, if SimpsonTP ever reconnects, I'll link him to this fiddle Aug 19 17:08:41 dmanderson: to be specific, set doesn't destroy the old view, but the viewChanged method that gets called does. Aug 19 17:09:11 thanks GodGinrai Aug 19 17:09:15 yw Aug 19 17:10:00 I think this is a good time to go grab lunch Aug 19 17:10:04 I'll bbl Aug 19 17:30:02 back Aug 19 17:40:04 hey chall Aug 19 17:55:03 hey dmanderson, here's an updated version using the aforementioned bubbling: http://jsfiddle.net/09bhefc3/3/ Aug 19 17:55:32 very nice! Aug 19 18:02:36 hey GodGinrai Aug 19 18:04:00 w/b chall Aug 19 18:31:39 tyty Aug 19 18:51:24 hey SimpsonTP Aug 19 18:51:50 here's your state changing example: Aug 19 18:51:52 http://jsfiddle.net/09bhefc3/3 Aug 19 18:52:00 wb btw Aug 19 18:52:34 cute Aug 19 18:54:11 You would probably combine this w/ enyo.Router so that you can better handle state Aug 19 18:54:31 but you'll have to talk to sugardave about that one Aug 19 18:54:53 or dmanderson maybe Aug 19 23:25:35 re Aug 19 23:44:52 hello Aug 19 23:47:00 sorry for being in /out all the time Aug 19 23:47:09 did you get my PM about a program or presentation ? **** ENDING LOGGING AT Wed Aug 20 02:59:59 2014