fluid-work IRC Logs-2011-01-18

[09:28:30 CST(-0600)] <heidi_> anastasiac where in the documentation could i read more about the ".locate" function?
[09:28:59 CST(-0600)] * anastasiac checking
[09:29:09 CST(-0600)] <colinclark> search for "DOM Binder"
[09:29:20 CST(-0600)] <anastasiac> beat me to it
[09:29:23 CST(-0600)] <anastasiac> http://wiki.fluidproject.org/display/fluid/DOM+Binder+API
[09:30:05 CST(-0600)] <heidi_> thanks
[09:30:23 CST(-0600)] <anastasiac> heidi_, if the docs don't answer your questions, please ask here. Then, we can improve the docs (smile)
[09:30:39 CST(-0600)] <heidi_> i was looking under # Framework Functions API and # Fluid Component API
[09:31:11 CST(-0600)] <heidi_> would never have thought to look under "DOM Binder" ... but perhaps that's common knowledge i'm just unaware of
[09:31:22 CST(-0600)] <colinclark> The component API documentation should probably make reference to the DOM Binder, in terms of the DOM Binder functions that are mixed into a View
[09:31:31 CST(-0600)] <anastasiac> hm. good to know. We will likely end up with a full alphabetical listing of all functions in the new worlds
[09:31:45 CST(-0600)] <heidi_> anastasiac that'd prob be very helpful
[09:32:44 CST(-0600)] <heidi_> colinclark so initView creates a dom binder ?
[09:32:56 CST(-0600)] <colinclark> Yes, that's right
[09:33:04 CST(-0600)] <heidi_> K
[09:33:09 CST(-0600)] <colinclark> anastasiac: is there some documentation that describes what a View is?
[09:33:18 CST(-0600)] <colinclark> with all of its various characteristics, etc?
[09:33:25 CST(-0600)] <anastasiac> hm
[09:34:20 CST(-0600)] <heidi_> colinclark it appears that that.locate(scrollable) returns table.flc-uploader-queue . not sure why
[09:34:41 CST(-0600)] <heidi_> we've defined scrollable to be scrollable: ".flc-scrollableTable-scrollable"
[09:34:56 CST(-0600)] <anastasiac> colinclark, at a quick glance, it doesn't look like we have a page on what a View is (adding it to the 'to-do' list)
[09:35:54 CST(-0600)] <heidi_> before you had that.locate("scrollable") tho (quotes)
[09:37:08 CST(-0600)] <colinclark> anastasiac: Do we have something about Components?
[09:37:27 CST(-0600)] <colinclark> heidi_: I've got it
[09:37:29 CST(-0600)] <colinclark> it's containment
[09:37:45 CST(-0600)] <heidi_> ah
[09:37:49 CST(-0600)] <colinclark> the DOM Binder is locked to a given container
[09:37:59 CST(-0600)] <colinclark> so in the case of our little scrollable table, that is the table
[09:38:00 CST(-0600)] <anastasiac> bits and pieces: http://wiki.fluidproject.org/display/fluid/Component+Lifecycle and http://wiki.fluidproject.org/display/fluid/How+to+Create+a+Fluid+Component
[09:38:05 CST(-0600)] <colinclark> but we need to pass back things outside of the container
[09:38:15 CST(-0600)] <colinclark> i can show you how to tweak the code
[09:38:30 CST(-0600)] <heidi_> so that.locate returns whats inside
[09:38:32 CST(-0600)] <anastasiac> and http://wiki.fluidproject.org/display/fluid/Fluid+Component+API
[09:39:13 CST(-0600)] <colinclark> heidi_: yep, exactly
[09:39:33 CST(-0600)] <colinclark> the whole point of a View is to keep itself nicely contained, so it doesn't accidentally suck up other stuff
[09:39:43 CST(-0600)] <heidi_> can i just return scrollable, since it already is a jquery ?
[09:39:45 CST(-0600)] <colinclark> that's always the risk in a portal or a mashup, where you might have to instances of the same component
[09:41:55 CST(-0600)] <colinclark> heidi_: Here's what I'd suggest
[09:42:13 CST(-0600)] <colinclark> You're right, since we already create the scrollable, we don't really need to go find it again
[09:43:11 CST(-0600)] <heidi_> we have a var called scrollable and also a selector called scrollable... that seems weird, is it?
[09:43:34 CST(-0600)] <colinclark> Not really, in itself
[09:44:10 CST(-0600)] <colinclark> hang on one sec, heidi_
[09:48:45 CST(-0600)] <colinclark> So I think we can just make our scrollableTable a "little component" instead of a View
[09:49:12 CST(-0600)] <colinclark> anastasiac: Can you take a sec to quickly describe the characteristics of View and a little component?
[09:49:17 CST(-0600)] <colinclark> The differences between the two, etc.
[09:49:39 CST(-0600)] <anastasiac> sure - give me a sec to remind myself...
[09:50:35 CST(-0600)] <heidi_> is "little component" an actual thing?
[09:50:39 CST(-0600)] <colinclark> yes
[09:50:48 CST(-0600)] <colinclark> Exactly what it sounds like
[09:50:56 CST(-0600)] <colinclark> it has some characteristics that components have
[09:51:08 CST(-0600)] <colinclark> most notably, the ability to automatically handle options
[09:51:13 CST(-0600)] <colinclark> but it's little
[09:51:27 CST(-0600)] <heidi_> but a view has options too ?
[09:51:32 CST(-0600)] <colinclark> yes, that's right
[09:51:53 CST(-0600)] <colinclark> a little component lacks many of the other features of a View
[09:52:04 CST(-0600)] <colinclark> including access to the DOM, events, etc.
[09:53:19 CST(-0600)] <anastasiac> heidi_, colinclark: super-simple explanation: A 'littleComponent' is basically an object that includes the options provided by the user, merged with any defaults. A View is that, plus a Dom binder and event firers (as specified in the defaults). A view also requires a container.
[09:53:28 CST(-0600)] <heidi_> ok, and it would be better to switch to a little component because view is overkill?
[09:53:53 CST(-0600)] <colinclark> yep, exactly
[09:53:56 CST(-0600)] <colinclark> So, it's an easy fix
[09:54:02 CST(-0600)] <colinclark> Remove the selectors block from the defaults
[09:54:20 CST(-0600)] <heidi_> thanks anastasiac
[09:54:31 CST(-0600)] <colinclark> Replace the call to that.locate("scrollable") with the scrollable directly
[09:54:40 CST(-0600)] * anastasiac making lots of notes about info we need in our new docs
[09:55:18 CST(-0600)] <colinclark> And instead of instantiating ourselves with fluid.initView, we'll want to use fluid.initLittleComponent
[09:56:24 CST(-0600)] <heidi_> and that.container = table ? er..
[09:56:41 CST(-0600)] <colinclark> Like anastasiac says, littleComponents don't typically need containers
[09:56:47 CST(-0600)] <colinclark> what would you do with it, anyway?
[09:57:05 CST(-0600)] <mlam> colinclark: posted patch for FLUID-4033 – > The fileUploadLimit bug that athena found last Wednesday
[09:57:09 CST(-0600)] <heidi_> right now we have that.container.wrap() happening
[09:57:14 CST(-0600)] <colinclark> thanks mlam
[09:57:17 CST(-0600)] <heidi_> but i think it should be table.wrap()
[09:57:25 CST(-0600)] <mlam> np
[09:57:28 CST(-0600)] <heidi_> er
[09:57:30 CST(-0600)] <colinclark> heidi_: Right, that container is exactly the same thing as table
[09:57:46 CST(-0600)] <colinclark> it's all the same
[09:57:47 CST(-0600)] <colinclark> you see?
[09:57:52 CST(-0600)] <heidi_> because we made a little component with table being the container
[09:58:53 CST(-0600)] <heidi_> but lc's don't need containers ...
[09:59:23 CST(-0600)] <heidi_> gonna read little component doc..
[09:59:54 CST(-0600)] <heidi_> anastasiac is there a little component api?
[10:00:01 CST(-0600)] <colinclark> There's really nothing to with a little component
[10:00:06 CST(-0600)] <colinclark> there's no real API for them
[10:00:09 CST(-0600)] <colinclark> they're just things that can take options
[10:00:26 CST(-0600)] <anastasiac> yes, on the Framework Functions page: http://wiki.fluidproject.org/display/fluid/Framework+Functions#FrameworkFunctions-fluid.initLittleComponent%28name%2Coptions%29
[10:00:40 CST(-0600)] <heidi_> thanks a
[10:00:51 CST(-0600)] <colinclark> we need options because we want our markup to be configurable
[10:00:55 CST(-0600)] <colinclark> but there's nothing to it, otherwise
[10:01:00 CST(-0600)] <heidi_> right
[10:01:05 CST(-0600)] <colinclark> just make a little component, do the stuff you need to do, and that's it
[10:01:15 CST(-0600)] <heidi_> just trying to figure out what that.container is
[10:01:22 CST(-0600)] <colinclark> Little components don't have containers
[10:01:31 CST(-0600)] <heidi_> so there is no that.container anymore ?
[10:01:31 CST(-0600)] <colinclark> you need to throw out the notion of a container
[10:01:33 CST(-0600)] <colinclark> no
[10:02:11 CST(-0600)] <heidi_> so instead of that.container.wrap i would use table.wrap or is there a that-thing?
[10:02:31 CST(-0600)] <colinclark> just use the table directly
[10:02:38 CST(-0600)] <colinclark> it'll look an awful lot like our first version of the code
[10:02:41 CST(-0600)] <colinclark> except with options (smile)
[10:02:48 CST(-0600)] <heidi_> okay
[10:05:45 CST(-0600)] <heidi_> colinclark returning scrollable seems to return a jquery, but not from the page itself, it's its own thing? maybe we do need that.locate ?
[10:06:06 CST(-0600)] <colinclark> I don't understand what that means, heidi_
[10:07:04 CST(-0600)] <heidi_> sorry... um, what does it mean when console prints out an object but in faint-type
[10:41:16 CST(-0600)] <colinclark> mlam: The one thing I forgot to mention for my standup update today is that I'll commit your stack of patches, too (smile)
[10:41:27 CST(-0600)] <jhung> golam, did you want to give your update?
[10:41:49 CST(-0600)] <golam> I will give my update here then, worked on Renderer jira clean up yesterday and working on Undo jira clean up today. That is it for me.
[10:42:17 CST(-0600)] <jhung> cool.
[10:43:44 CST(-0600)] <mlam> colinclark: wicked, thanks (smile)
[14:42:02 CST(-0600)] <colinclark> heidi_: New patch: http://issues.fluidproject.org/browse/FLUID-3837
[14:42:10 CST(-0600)] <colinclark> See if you can figure out what madness I've introduced accidentally
[14:42:17 CST(-0600)] <heidi_> (smile) cool, i'll check it
[14:42:20 CST(-0600)] <colinclark> thanks
[15:03:23 CST(-0600)] <colinclark> ok, i'm back
[15:08:23 CST(-0600)] <athena> by the way, thought of you guys when i read this article: http://seattletimes.nwsource.com/html/localnews/2013885512_blindtour09m.html
[15:19:25 CST(-0600)] <colinclark> athena: It's funny you mention that
[15:19:32 CST(-0600)] <colinclark> We had someone touring the IDRC yesterday
[15:19:54 CST(-0600)] <colinclark> and he was asking why people with visual impairments would be interested in, say, a fine art museum
[15:20:05 CST(-0600)] <colinclark> jameswy's response to the question was very much in line with this
[15:20:39 CST(-0600)] <colinclark> It's not unlike why people go to rock shows instead of just listening to the CDs
[15:20:45 CST(-0600)] <athena> makes sense
[15:21:02 CST(-0600)] <athena> the picasso exhibit was actually really neat (we're members of that museum)
[15:21:14 CST(-0600)] <colinclark> cool
[15:21:19 CST(-0600)] <athena> nea tthat they're doing the tours regularly - sounds like there's really an audience for them
[15:21:28 CST(-0600)] <colinclark> that's pretty great
[15:52:57 CST(-0600)] <colinclark> heidi_: Here's a newer, less quirky patch: http://issues.fluidproject.org/browse/FLUID-3837
[15:53:03 CST(-0600)] <colinclark> version -f
[15:53:16 CST(-0600)] <heidi_> thanks colin