**** BEGIN LOGGING AT Fri Apr 13 02:59:59 2012 Apr 13 03:33:43 anyone around I could bug about enyo2? Apr 13 03:34:58 or, more specifically, is there any reason http://pastebin.com/kf9RS7B7 rep1Butt isn't triggering showEntries ? Apr 13 06:32:11 summatusmentis: where is the showEntries function? Apr 13 06:33:04 oftentimes it is a problem with correct ownership. In your example, the showEntries function will be searched in the Scroller kind. If it is not there, you will have to set another owner Apr 13 14:04:04 joekinley: oh, that's the issue. How do I make the owner? Apr 13 20:36:25 well, you could set the owner, but you'd have to know how to reference it first Apr 13 20:36:40 you need to learn how to move up and down the "ladder" Apr 13 20:36:57 yeah, I'm not sure what that means Apr 13 20:37:12 when you first create your enyo object, you set it to a variable Apr 13 20:37:51 var x = myObject().renderInto(document.body); Apr 13 20:38:07 x is a horrible example but Apr 13 20:38:27 you can then access everything by uusing this variable x Apr 13 20:38:31 I haven't been doing that at all, this is all in one kind Apr 13 20:38:55 ok Apr 13 20:39:26 well anyways you can call functions from elsewhere x.call() or access objects x.$.repeater Apr 13 20:39:48 or if you have a subkind you can do x.$.subkind. and access that kind's properties from there Apr 13 20:40:31 so if you have a header inside a scroller, and the header was named "head" and the scroller was named "scroll", you could access it two ways Apr 13 20:40:50 x.$.scroll.$.head (from anywhere in any kind, or any javascript file) Apr 13 20:41:01 or from the main kind's file with this.$.scroll.$.head Apr 13 20:41:04 does that make sense Apr 13 20:43:06 it does. However, I want the ontap: to trigger to a function defined outside the scope of the Scroller Apr 13 20:43:47 okay Apr 13 20:43:55 every enyo element has an id Apr 13 20:44:07 this.$.element.id Apr 13 20:46:00 so you could do like: this.onTapFunctionBinder = this.onTapFunction.bind(this); document.getElementById(this.$.el.id).ontap = this.onTapFunctionBinder; Apr 13 20:46:27 and i'm pretty sure that would work. or you can just put a anonymous function there Apr 13 20:46:35 or w/o binding. but binding is probably better Apr 13 20:46:51 hrm, I'll have to play with it Apr 13 20:49:01 but yeah. .id is what you're looking for Apr 13 20:49:30 also: if you want to play around a LOT... you can log the properties of an enyo object Apr 13 20:50:10 var _o = this.$.obj; for(var _p in _o){console.log(_p);console.log(_o);} Apr 13 20:50:24 and you'll see all properties and functions ;) Apr 13 20:52:05 wait, so, where would the binding go? Apr 13 20:53:43 make your own ontap function, then bind the function to a variable and set the ontap listener to the variable Apr 13 21:07:53 :w Apr 13 21:10:29 oops, sorry Apr 13 22:00:34 does that help at all? Apr 14 00:15:25 gah why can i never figure out how to make popups and scrollers display properly Apr 14 00:15:37 and worse, popups with scrollers Apr 14 00:15:47 why would you want that? Apr 14 00:16:03 o.o Apr 14 00:16:19 got two conflicting models of sizing there Apr 14 00:16:32 popups have to fit their content, and scrollers (by definition) shouldn't Apr 14 00:16:55 have to size one or the other explicitly Apr 14 00:17:27 I would think a popup is probably not the best design to house something that scrolls Apr 14 00:17:48 unless it's fullscreen already Apr 14 00:18:37 hmm Apr 14 00:20:28 well the scroller is needed because some devices just plain don't have enough screen space Apr 14 00:20:41 (notably palm phones) Apr 14 00:21:36 every rule has a corner case :( Apr 14 00:21:47 what's in the scroller anyway? Apr 14 00:22:07 in this particular case, it's some text with a couple of buttons Apr 14 00:23:00 huh, my irc session died sometime ago, so I missed any context you might have already stated Apr 14 00:23:24 nope just started talking about it Apr 14 00:24:50 ah ok Apr 14 00:25:25 using enyo 2.0? Apr 14 00:39:12 1 Apr 14 00:41:32 ah, ok Apr 14 00:47:41 you can set the height/width of the popup based on window.innerWidth / innerHeight Apr 14 00:48:06 and flex the scroller Apr 14 01:07:52 i think i am gonna name my future scrollers goliath Apr 14 01:50:04 i name my vectors Victor Apr 14 02:03:57 "Joey, have you ever been in a Turkish prison?" **** ENDING LOGGING AT Sat Apr 14 02:59:58 2012