Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 14 17:40
    nlundquist edited #5424
  • Nov 14 17:40
    nlundquist edited #5424
  • Nov 14 17:39
    nlundquist opened #5424
  • Nov 14 17:39
    nlundquist review_requested #5424
  • Nov 14 17:39

    nlundquist on 107-update-converter-demos

    update can-stache-converters de… (compare)

  • Nov 14 14:32
    greenkeeper[bot] labeled #5423
  • Nov 14 14:32
    greenkeeper[bot] opened #5423
  • Nov 14 14:32

    greenkeeper[bot] on can-route-5.0.1

    fix(package): update can-route … (compare)

  • Nov 13 13:09

    greenkeeper[bot] on steal-tools-2.2.3

    (compare)

  • Nov 13 12:55

    greenkeeper[bot] on steal-tools-2.2.3

    chore(package): update steal-to… (compare)

  • Nov 13 01:44

    greenkeeper[bot] on @webcomponents

    (compare)

  • Nov 13 01:42

    greenkeeper[bot] on @webcomponents

    chore(package): update @webcomp… (compare)

  • Nov 12 05:28
    greenkeeper[bot] commented #5392
  • Nov 12 05:28

    greenkeeper[bot] on core-js-3.4.1

    chore(package): update core-js … (compare)

  • Nov 11 18:03
    greenkeeper[bot] labeled #5422
  • Nov 11 18:03
    greenkeeper[bot] opened #5422
  • Nov 11 18:03

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • Nov 11 18:02
    greenkeeper[bot] commented #5401
  • Nov 11 18:02

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • Nov 10 23:39

    greenkeeper[bot] on @octokit

    (compare)

Matthew Phillips
@matthewp
but in a future release we'll probably remove the need for that
opolyo01
@opolyo01
ok looks promising, thanks
Matthew Phillips
@matthewp
and babel will be default so actually no config at all needed :)
then you also get all of the benefits that steal-tools provides like optimized production builds
see the videos on stealjs.com
Alexis Abril
@alexisabril
Shouldn’t can.List.prototype.filter, etc return the same type of list?(instead of always a new can.List)
var Todo = can.Map.extend();
var todos = new Todo.List();

var filtered = todos.filter(function() { return true; });
console.log(filtered instanceof Todo.List); //false
dylanrtt
@dylanrtt
@alexisabril I agree it probably should, but I guess it doesn't currently. Somebody I work with overwrote the filter method of many model lists to get it to work the way you'd expect
Alexis Abril
@alexisabril
yeah, that seems straightforward

https://github.com/bitovi/canjs/blob/master/list/list.js#L1102 should be

var filteredList = new this.constructor();

possibly...

dylanrtt
@dylanrtt
yeah like in https://github.com/bitovi/canjs/blob/master/map/list/list.js#L5
I am not sure what that is used for since it doesn't run on a normal filter
Alexis Abril
@alexisabril
yeah, this is a bug
dylanrtt
@dylanrtt
the example I linked to I guess is a plugin but it's... deprecated
http://canjs.com/docs/can.Map.List.html
Jani Mikkonen
@rasjani
@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 ..
Matthew Phillips
@matthewp
That's cool, really appreciate you doing an article about using it with can
Justin Meyer
@justinbmeyer
@matthewp @daffl either of you having hipchat problems?
Morgan Heimbeck
@Xitstrategies
Matthew Phillips
@matthewp
i did a bit yesterday, yeah
Jani Mikkonen
@rasjani
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 =)
Chris Gomez
@akagomez
@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.
Jani Mikkonen
@rasjani
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.
Chris Gomez
@akagomez
Meld. That’s new to me. I’ll look it up.
Jani Mikkonen
@rasjani
its a gui diff / merge tool, can be used with other scm's besides git. http://meldmerge.org/
Chris Gomez
@akagomez
Neat.
Jani Mikkonen
@rasjani
so, major question is, why are trailing whitespaces still allowed ? =))
Chris Gomez
@akagomez
Couldn’t tell you. Never asked.
blairio
@blairio
Hello CanJS folks, I was wondering if anyone is familiar with a can component or other Javascript UI thing that can bind a can.list but only renders the items that are visible as they scroll.
Justin Meyer
@justinbmeyer
@blairio @cklanac was working on this
blairio
@blairio
@cklanac I would be interested to learn where you have gotten with this. It seems like a popular pattern on native platforms (Eg. iOS UITableViewController and Android RecyclerView)
Chris Klanac
@cklanac
@blairio I'll put together a jsBin that shows the relevant bits… stay tuned
blairio
@blairio
Thanks @cklanac
blairio
@blairio
Does anybody know if there is a quick way on the console to find out how many live bindings there are on a page at a given moment? Thanks.
Chris Klanac
@cklanac
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.
blairio
@blairio
Cool. Thanks @cklanac I will look at it soon
Chris Klanac
@cklanac
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.
dylanrtt
@dylanrtt
are stache partials supposed to completely re-render when the parent scope changes?
Juan Orozco
@Macrofig
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.
Matthew Phillips
@matthewp
i don't follow what you're attempting to do
Nikolay Nadorichev
@Luanre
@Macrofig are you tried to pass all of your data to constructor of MyCustomMap ?
Juan Orozco
@Macrofig
Here's an example @ccummings helped build. http://jsbin.com/zuteha/edit?js,output
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.
dylanrtt
@dylanrtt
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
Luis Merino
@Rendez
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
Chris Gomez
@akagomez
@Rendez I think that progress has been logged here: bitovi/canjs#1700
Chris Gomez
@akagomez
Using <can-import> for the first time. So glad to finally have a solution in place for template dependencies.