@justinbmeyer why im not using stealjs ? multiple reasons, company i was working for uses webpack for the main web client uses webpack and has some tooling and "standards" around that so sharing resources between two teams was easier - and then it was also easier to go with something we already knew that would work because my team's goal was to address nodewebkit, smarttv's and normal web .. so it was just easier at the time to go with webpack ..
That's cool, really appreciate you doing an article about using it with can
@matthewp@daffl either of you having hipchat problems?
btw, i just noticed that the canjs code doesn't enforce removal of trailing whitespaces. was about to submit a very very very very small bugfix but then the patch got big because my editor is removing those =)
@rasjani It’s one of my biggest peeves with the CanJS repo.
I do get a lot of practice with git add -p as a result though.
thanks.. i've seen few colleges using it but totally forgot that flag.. Previously i've just stashed the stuff and used meld to pick up the changes i really wanted.
Basically loops over all the list items that haven’t been fetched yet. It checks each item to see if it is within the viewport. If it is, then it sets a value on the ViewModel which you can use to fetch data or whatever.
Cool. Thanks @cklanac I will look at it soon
I also short circuit the loop once we get to the first item past the viewport which should help performance a bit on really large lists.
are stache partials supposed to completely re-render when the parent scope changes?
Is there an example where someone has specified the Map to use in a List but X levels deep? So, that myList.attr(0).items.attr(0) instanceof MyCustomMap?
Right now, only the first level uses the custom Map and I need it to apply to all maps in the List.
i don't follow what you're attempting to do
@Macrofig are you tried to pass all of your data to constructor of MyCustomMap ?
The last check is returning false. I need every map, at any level to be an instance of the custom map.
@Luanre I tried using can.Map instead of a can.List and that worked fine. My understanding, though, is this method is better.
Another consideration is that I each item in the list needs to report it's index within the list dynamically, i.e. the order of items can change at any time and the index needs to be up to date.
Has anyone figured out how to make dynamic select menus work with can-value? It seems that when the source/filter of the list changes, the displayed selected value always changes to the first item which may not be correct. http://jsbin.com/fedixolaru/1/edit?html,js,output
Hi, I saw that for 2.3.0 there was a plan to improve cross-component communication, does anyone know what's the status on that. For me it's a crucial factor that's keeping me from using canjs in my current company
@Rendez I think that progress has been logged here: bitovi/canjs#1700
Using <can-import> for the first time. So glad to finally have a solution in place for template dependencies.
Worked like a charm.
@Rendez what type of cross-component communication?
@dylanrtt that's probably something we should fix
@akagomez maybe I didn't read the example fully
but this to me seems a problem with not keeping the value and options in sync
this might be something can.view.live needs a special case to fix
@dylanrtt can you create an issue?
someone can take a look at this
just to make sure I see what the problem is ... basically if <option>s are added / removed from the DOM, the selected one is not currently maintained?
just saw your issue ... if you could provide a bit of text around the bug, that would be helpful
(issues that people have to "dive into" to have an idea about what's breaking are fixed a bit slower then ones where it's more immediately obvious)