**** BEGIN LOGGING AT Sat Jul 14 02:59:59 2012 Jul 14 03:01:35 drunknbass: that's pretty cool Jul 14 03:04:05 yeah, actually it is Jul 14 03:04:08 hrm. Jul 14 03:15:12 thx. ill let you know when i put it on github Jul 14 06:49:13 so i have a question of inheritance. i have a custom kind(A) with a property "selected" and i do some stuff in selectedChanged:. works fine. now i have another kind(B) that is based off of this other kind(A) and overrides the selectedChanged: function with its own stuff in it. now my problem is i added components and they don't seem to exist in the scope of my kind(B) even though they were added to that specific object Jul 14 06:50:38 i was wanting to do different behavior on the selected change to this specific object. i could roll the component stuff into this kindB but i would like to understand why its not working Jul 14 23:27:04 can you cancel a enyo event from firing? I'm having an issue when tracking touches that the on tap fires after I'm done regardless of it being a tap or a drag. if i detect a drag id like to just cancel it from firing if possible Jul 14 23:27:57 otherwise i have to keep a variable for if I'm tracking a touch and then on drag end i have to delay that call and then check for its value in the on tap handler(which fires right after so the timeout keeps it sane) Jul 14 23:35:55 set a bool to false, ondragstart put it to true and ondragend put it to false, and then ontap return if it's true Jul 14 23:36:12 i am Jul 14 23:36:23 i have to do the setting it to false on a dray though Jul 14 23:36:29 because on tap fires after dragended Jul 14 23:36:34 delay* Jul 14 23:37:06 so i guess i was asking if enyo controls had ways of canceling the built in touch events from firing Jul 14 23:37:17 would be cleaner and i have code ocd Jul 14 23:37:19 :P Jul 14 23:37:25 is that the order you define the events? i wonder if that changes if you defined it different Jul 14 23:38:07 not that i know of. well, you could try window.event.cancel() or window.event.stopPropagation().. maybe Jul 14 23:39:17 hmm ok Jul 14 23:39:26 no actually my handlers are defines with on tap first Jul 14 23:39:29 defined* Jul 14 23:39:48 i guess it goes last because it has logic to decide a tap or not, i dunno i haven't dug into the source yet Jul 14 23:39:55 i don't think the timing would be right, though. it wouldn't work. and yeah, it doesn't matter what you defined first, tap would happen after dragend no matter what Jul 14 23:40:28 i have a very short delay to flip that flag but I'm thinking if enyo doesn't track touches this way maybe its worth expanding it Jul 14 23:40:29 i think it goes last because of javascript, not something enyo does Jul 14 23:41:12 and if i do that ill need to fork it :/ Jul 14 23:43:54 is it possible you could use onclick instead? Jul 14 23:44:10 or onmouseup Jul 14 23:46:16 I'm thinking of tacking on something actually Jul 14 23:46:48 i wonder if enyo.Gesture handles this stuff? Jul 14 23:46:59 i've never used that, actually Jul 14 23:47:00 or gesture.js or whatever Jul 14 23:47:35 because i was thinking of a model similar to iOS gesture recognizers but maybe that is kind of why gesture.js exists Jul 14 23:48:27 oh maybe not. looks like gesture.js IS what handles the enyo events Jul 14 23:48:29 yeah, gesture.js handles all of that from what i see. so your best bet is to extend it Jul 14 23:48:35 and i am using tap/ontap already Jul 14 23:48:36 yeah Jul 14 23:48:53 id like to be able to tack on a gesture object and define recognizers like ios Jul 14 23:48:59 so i might build something to do that Jul 14 23:49:01 i'm not sure if you can EXTEND enyo kinds, but you can probably overwrite it in your own file without modifying your source Jul 14 23:49:44 i might have to make a minor change to enyo.Control to track the recognizers variable but other than that i can prob insert it without disrupting anything Jul 14 23:49:57 then they can be added to any control Jul 14 23:51:34 sounds like a 'feature' to me :) Jul 14 23:56:45 yea too bad there rant any webs devices around or i could actually be writing code that is useful :O Jul 14 23:56:57 arnt any webos Jul 14 23:57:10 looks like spell checking was enabled automatically. hahaha Jul 15 00:07:55 http://cl.ly/I67U Jul 15 00:08:13 one control down 500 to go :O Jul 15 00:08:59 yeah, i have absolutely no imagination or graphics design skills whatsoever. Jul 15 00:09:07 i'm about as smart as a carrot when it comes to that Jul 15 00:09:34 and that's an insult to the carrot Jul 15 00:11:32 i was a designer b4 i put on my programmer hat Jul 15 00:11:56 i did flash javascript and web stuff for a long time but dont do it much so it gets fuzzy Jul 15 00:12:45 im just building up a nice library of widgets because onyx is atually the nicest stuff i see out there, and its not enough Jul 15 00:34:35 * madnificent doesn't understand what's wrong with the linked screenshot Jul 15 00:35:13 drunknbass: why not invest time in fixing onyx instead of reinventing the wheel? Jul 15 00:35:52 Not saying there's anything wrong with your widgets (they look fantastic) but I think the effort would be more productive in onyx proper :\ Jul 15 00:36:08 what is there to fix? Nobody says they cant work together Jul 15 00:36:19 seems like adding my own style to onyx might not make sense Jul 15 00:36:34 drunknbass: link me to your style stuff? Jul 15 00:36:48 Until we have proper minification and stripping out of unused parts in the build chain, I'm uncomfortable pulling in large deps Jul 15 00:36:50 well i mean my style of code also. not just the theme Jul 15 00:36:56 Like, enyo+onyx is already 60k Jul 15 00:37:12 true. btw is minify broken? Jul 15 00:37:14 as long as the web is one of my end targets,t hat sucks Jul 15 00:37:22 minify isn't broken, it just doesn't strip unused kinds Jul 15 00:37:22 i couldnt get it to run on my system but i didnt really try for too long Jul 15 00:37:37 oh. but we can fix that? Jul 15 00:38:04 maybe; somewhere on my "goals for enyo hacking" is looking at improving the build process Jul 15 00:38:16 finding unused parts of code is a nontrivial task though Jul 15 00:38:55 kinds should be straight forward enough since they have a pattern Jul 15 00:39:16 but yea if it makes sense to add more widgets to onyx i can Jul 15 00:39:56 doesnt really mater to me where they sit. right now what i built doesnt depend on it at all. if i move them together i can probably strip out some stuff Jul 15 00:40:19 I just worry about early fragmentation of enyo Jul 15 00:41:45 thats true Jul 15 00:42:08 i guess i can fork them both and see what comes of it Jul 15 00:59:24 Hi there, anyone willing to help a complete newbie to enyo and JS? Jul 15 00:59:40 depends, how much are you willing to pay? Jul 15 01:00:02 docho: or in friendlier terms, what do you know, what are you looking for. Jul 15 01:00:44 I am trying out the examples in the tutorial, varying them Jul 15 01:01:15 but already the first one, where it says that it would be easy to create new instances doesn't seem to work Jul 15 01:01:40 I created two instances of the HelloWorld example Jul 15 01:02:39 and render both with control1.renderInto(document.body); and control2.renderInto(document.body); Jul 15 01:02:53 problem is, that only the last one is shown Jul 15 01:04:12 because it's overwriting it Jul 15 01:04:38 think about it: you're rendering the first control into document.body. then, in the next statement you're telling another control to render into document.body. Jul 15 01:04:43 I thought that's not the way if you use enyo.kind? That's how I read the tutorial Jul 15 01:05:34 no, you're doing it right, but when you renderInto() you're replacing the contents of what you're rendering into with that control Jul 15 01:06:10 if you want to see your second control, you should include it as a kind in your first control Jul 15 01:06:18 ok, and how would I render both instances? Jul 15 01:06:47 or, you could make two divs inside .. / and renderInto each one separately Jul 15 01:07:04 but that's a dirty way, i wouldn't recommend doing that Jul 15 01:08:20 ok, I get the div method I think, but how would I include the second control into the first as both already are instances of enyo.kind Jul 15 01:08:54 do I reuse the kind: and say kind: control1? Jul 15 01:09:16 you'd need to write two kinds Jul 15 01:10:38 once you render your main kind into the document, for your second kind you just do: { kind: "mySecondKind" } Jul 15 01:14:11 ok, thanks a lot! I guess I experiment a bit more before asking every single step Jul 15 01:14:54 don't be afraid to ask questions Jul 15 01:15:15 as long as you got enough money, i'll be here all night! Jul 15 01:15:37 ;-) Jul 15 01:16:42 I'm a poor student, so not much to get here Jul 15 01:17:04 that's okay, i accept all forms of payments Jul 15 01:17:21 i can even set you up with a payment plan Jul 15 01:17:43 ( with low interest rates ! ) Jul 15 01:22:21 fxspec06: though i appreciate the humor, i don't know if it really came across :) Jul 15 01:23:10 yeah, i'm really bad at that. docho: my apologies. please forgive me, it's saturday night and it's going to be 100+ tomorrow. blah. Jul 15 01:23:54 I'm good, just looking more at the code atm, sorry Jul 15 01:23:59 all enyo devs are more than welcome, and everyone here is more than happy to answer any question you have no matter how small Jul 15 01:24:50 fxspec06: LoL, it's not that bad either! and it's not ever wrong to get payed for teaching things. i was simply indicating that it might be good to hint docho that he wasn't going to have to /msg his credit card details to you just yet ;-) Jul 15 01:33:43 i actually wouldn't be upset with trident layers. Jul 15 02:11:54 Do any people who get paid to work on enyo come in here at all? Jul 15 02:12:04 or did all these people get walking papers? Jul 15 02:14:33 unwiredben comes in here sometimes, sugardave used to visit, adora makes the occasional appearance Jul 15 02:14:48 it used to be more crowded in here, until "the incident" Jul 15 02:20:14 lol Jul 15 02:20:31 i havent looked at the open webos, is it the full os? Jul 15 02:20:39 not yet Jul 15 02:20:42 it will be Jul 15 02:21:10 im thinking i might actually contribute to that Jul 15 02:21:34 i had a touchpad that was about to be recycled but it now has a purpose Jul 15 02:21:46 i would like to. at some point. maybe. **** ENDING LOGGING AT Sun Jul 15 02:59:59 2012