**** BEGIN LOGGING AT Tue Feb 21 02:59:58 2012 Feb 21 06:26:51 minego, update applied smoothly on my pre2 after a reboot Feb 21 07:35:32 gaaaaah still nothing back from RIM yet Feb 21 07:38:19 GVoice on Android is selling slightly less well than GVoice on Pre- Feb 21 07:38:27 i sort of expected that though Feb 21 07:39:35 of course, i recently discovered that it won't be possible to support notifications via the current method, considering that timers don't work when you're backgrounded in phonegap Feb 21 17:01:02 http://enyojs.com/tutorial/ <-- is there any reason for the flipping between using double quotes and single quotes? Does it matter? Feb 21 17:02:27 no Feb 21 18:19:59 having trouble iterating over the components array returned by a getComponents() call.. Feb 21 18:20:30 for(tweetComponent in tweets.getComponents()){ alert(tweetComponent.getProperty("name")); } Feb 21 18:20:42 isn't taking Feb 21 18:21:08 how can I correctly alert the name for each of the components? Feb 21 18:29:18 hello. how can i create an element with some custom attributes (data-* attributes) ? Feb 21 18:29:59 { className: "something", attributes: {"data-something": "anotherthing"} } doesn`t work Feb 21 18:40:20 i use enyo 1, for touchpad application Feb 21 18:56:51 just like that Feb 21 19:02:02 it doesn`t work like that Feb 21 19:05:28 how are you accessing it? Feb 21 19:11:16 this is how i create it: {className: "decade-link60", onclick: "clickDecadeLink", attributes: {decade: 1960} } . and i access it in clickDecadeLink Feb 21 19:15:52 clickDecadeLink: function(element, event) { console.log(jQuery("#" + element.id)); } Feb 21 19:20:52 any idea? Feb 21 19:26:18 * DougReeder waves hello Feb 21 19:27:52 Is it just my installation, or is Enyo 1.0 visully broken on recent releases of Chrome? Feb 21 19:30:23 DougReeder: looks ok on 17 here Feb 21 19:31:22 burg: if you're trying to set HTML attributes, you'll need to change them on the node, not in the kind definition Feb 21 19:31:43 i don't know if there's a built in way to do that, but i do know you can call this.hasNode() to get the node, and then change it Feb 21 19:31:47 EricBlade, so it is not possible to set them in kind definition? Feb 21 19:31:54 there might be Feb 21 19:36:03 couldn`t find any yet Feb 21 19:38:21 My radio buttons have the background chopped up, and my Picker has the right edge smeared, under Chrome 17.0.963.56 under WinXP Feb 21 19:38:39 Thanks EricBlade Feb 21 19:39:38 DougReeder: hm. i don't have anything in the way of custom styling other than color changes, but pickers seem to work. i've never used radios Feb 21 19:39:39 They appear fine in Safari under OSX 10.6 Feb 21 19:40:11 Okay, I'll try to narrow it down more. Feb 21 19:40:13 17.0.963.56 Feb 21 20:00:48 I'm playing around with the enyo 2 tutorial, and I can't seem to figure out why I can't override the settings of my "DefaultTweet" kind Feb 21 20:00:54 http://pastebin.com/RBCQgvX2 Feb 21 20:01:44 when the components are rendered, they are rendered with the texts specified in the components of the DefaultTweet kind Feb 21 20:02:16 instead what I have expressly specified as overridden values when I create instances Feb 21 20:35:06 you need to define those variables in a published block Feb 21 20:35:14 i think, i ahven't worked with 2.0, but that's what it looks like is wrong Feb 21 20:35:41 and then use this.$.myweest.setText(...) Feb 21 20:47:28 do all those properties automatically have getters and setters created? Feb 21 20:49:48 bah , var newTweet = new DefaultTweet({}); newTweet.$.myTweet.setText("OVERRIDE"); --craps out :( Feb 21 20:54:24 alert(newTweet.$.myTweet.text); seems to access the property fine... Feb 21 21:47:36 yes when you specify a variable as published, it should receive a getter and setter Feb 21 21:47:43 and a changed call Feb 21 21:48:23 specify as published? yikes... is that an enyo directive or a javascript thing? sory.. Java background here.... Feb 21 21:49:30 it's a Enyo thing Feb 21 21:49:49 published: { var1, var2, var... }, Feb 21 21:50:03 enyo will create setters, getters, and call the changed event, when you use the setter Feb 21 21:51:09 ok, so that setText shouldn't really work on this Tweet kind, as that wasn't a published var? Feb 21 21:52:34 like.. "published" means you can get a getter/setter for accessing a component from higher up the heirarchy ? Feb 21 21:53:20 exactly Feb 21 21:54:52 ok, so my "DefaultTweet" wrapper kind couldn't modify it's "Tweet" component's text field component, because it's too deep? Feb 21 21:57:04 I can't view your code sample, but generally, ojects should only acess their direct children (the objects they own) Feb 21 21:57:09 uh.. i'm looking at this a little more thoroughly.. doesn't look right here Feb 21 21:57:39 But you must distinguish between ownership and containment. Feb 21 21:57:51 new shouldn't be used to create a Enyo component i don't think Feb 21 21:58:06 always use enyo.create() ? Feb 21 21:58:18 what it looks like you're doing is creating new components that aren't attached anywhere Feb 21 21:58:55 Im attaching them in a "tweets" control, which is empty Feb 21 21:59:14 andI just call 'createComponent' and just pass in my created components... Feb 21 21:59:18 right, but the tweets control isn't attached to the document either Feb 21 21:59:33 tweets.renderInto(document.body); at end Feb 21 21:59:36 ahhh Feb 21 22:00:11 ok i'm used to doing everything in a situation where you render everything and then the program runs at that point Feb 21 22:00:27 so... i have no idea if what you're doing there works Feb 21 22:00:35 yeah I'm just trying to mess with the basic concepts at the moment Feb 21 22:00:38 day one enyo, really.... Feb 21 22:05:30 You probably want to use a VirtualList instead of trying to do all the work yourself. Feb 21 22:06:15 oh I really don't care about the list... I don't really have a end goal other than just playing around for a moment. Doing the work myself is the fun part :) Feb 21 22:07:02 http://pastebin.com/RBCQgvX2 Feb 21 22:07:14 so this "works" in the sense that at least I understadn the output that is generated Feb 21 22:08:32 what I want to be able to do is create the DefaultTweet with params that will override those specified in its Tweet kind component Feb 21 22:08:57 to do that though, I think the Tweet kinds properties need to be published? Feb 21 22:11:39 If you intend for an objects owner to set properties directly, those properties should be published. Feb 21 22:12:49 is that bad practice though? Feb 21 22:13:10 Is what bad practice? Feb 21 22:13:30 allowing an ownser to set properties directly Feb 21 22:14:25 No. Not unless the properties are supposed to be private. Feb 21 22:14:38 ok Feb 21 22:20:10 I updated pastebin... seems like what I want, but it's not actually using the text I set via setText() method when it renders.... Feb 21 22:29:24 weird, if I call setText() AFTER the renderInto call, then it shows the text I set. Calling setText BEFORE I tell the document to render, then it has no effect, the default is still used Feb 21 22:42:38 so createComponent method must be creating a new Component instead of using the same instance I pass in... Feb 21 23:54:05 is there no way to add an existing component to a new control? using createComponent seems to create a new component of the same type as that passed in the argument, but any set properties are gone, it reverts to default, as if it were a new object Feb 21 23:54:35 and addComponent just seems to fail... **** ENDING LOGGING AT Wed Feb 22 02:59:58 2012