Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 20 21:04
    m-mujica commented #5303
  • Sep 20 20:23
    m-mujica opened #5303
  • Sep 20 20:23

    m-mujica on upgrade-deps

    Update can-type and can-stache-… (compare)

  • Sep 20 20:05
    m-mujica edited #5302
  • Sep 20 20:03
    m-mujica synchronize #5302
  • Sep 20 20:03

    m-mujica on upgrade

    Upgrade routing guide to Can 6 Fix incorrect highlight Use svg images (instead of .png) (compare)

  • Sep 20 19:32
    m-mujica opened #5302
  • Sep 20 19:29

    m-mujica on upgrade

    Upgrade routing guide to Can 6 Fix incorrect highlight (compare)

  • Sep 20 17:42

    m-mujica on upgrade

    WIP: Upgrade (compare)

  • Sep 20 17:06
    do-adams starred canjs/canjs
  • Sep 20 13:34

    chasenlehara on 5119-testing-guide

    Update the Testing guide for Ca… (compare)

  • Sep 20 13:21
    cherifGsoul commented #5295
  • Sep 20 13:18
    cherifGsoul synchronize #5295
  • Sep 20 13:18

    cherifGsoul on update-theme-new-buttons

    Theme pre-release 2 (compare)

  • Sep 20 10:29

    greenkeeper[bot] on socket.io-client-2.3.0

    (compare)

  • Sep 20 10:26

    greenkeeper[bot] on socket.io-client-2.3.0

    chore(package): update socket.i… (compare)

  • Sep 20 06:40
    HellMagic starred canjs/canjs
  • Sep 19 20:42
    m-mujica commented #5119
  • Sep 19 18:40
    phillipskevin closed #5300
  • Sep 19 18:40
    phillipskevin commented #5300
Justin Meyer
@justinbmeyer
not really a good long term solution b/c we want people to use can-define to be able to add observability to constructors created with class expressions
types.isConstructor basically checks if a function has a modified .prototype
which, IMO, is a pretty close approximation to when to use new in almost any circumstance
and would cover all uses of DefineMap
Leath Cooper
@IcculusC
will Map be deprecated?
could do it the other way around
put he check on the Map not the DefineMap
Justin Meyer
@justinbmeyer
our place for this kinda type detection behavior is in : http://canjs.github.io/canjs/doc/can-util/js/types/types.html
Leath Cooper
@IcculusC
unless I'm misunderstanding
Justin Meyer
@justinbmeyer
well, viewModel is mostly being deprecated. That's what I'm focused on.
in an ideal world, we'd have 2 functions ...
well, 2 properties
ViewModel -> assumes you pass it a constructor function.
Leath Cooper
@IcculusC
yep
Justin Meyer
@justinbmeyer
scope -> you can do whatever the heck you want here ... function called with outer scope, element, etc, returns a new scope or anything else gets put in a new Scope.
viewModel is basically legacy
Leath Cooper
@IcculusC
well if that's the case why not just warn people if they use viewModel at all
and encourage them to use the new convention
Justin Meyer
@justinbmeyer
yeah, not a bad idea
Leath Cooper
@IcculusC
maybe one of those fancy "soon to be deprecated" warnings
Christopher Oliphant
@RALifeCoach
steal-tools - what if my main module isn’t main.js
Thomas Sieverding
@Bajix
Then define it in your package.json
Leath Cooper
@IcculusC
change it in your package.json
lol
Justin Meyer
@justinbmeyer
@halcyonandon regarding checkbox docs ... @matthewp is adding two-way converters right now
Leath Cooper
@IcculusC
"main": "index.js",
for example from mine
Justin Meyer
@justinbmeyer
Thomas Sieverding
@Bajix
@justinbmeyer Does can-connect have any synchronous lookup methods suitable for parseInstanceData?
Justin Meyer
@justinbmeyer
lookup of what?
things in the store?
Thomas Sieverding
@Bajix
Yea
Justin Meyer
@justinbmeyer
.instanceStore.get( id )
or you can use
Thomas Sieverding
@Bajix
I thought that returned a promise?
Justin Meyer
@justinbmeyer
.hydrateInstance( ... )
nope
Thomas Sieverding
@Bajix
Is there any way to do a findAll against local only? I was thinking of doing some aggregate-based side-loading
Justin Meyer
@justinbmeyer
cache-requests already does this
not sync though
but I did make some private sync methods in memory-cache
@halcyonandon we're adding some default converters like boolean-to-inList ... which should include examples w/ checkboxes
we aren't sure about what the helpers should look like ... maybe once @matthewp has this ready, please check it out and let us know what you think
Thomas Sieverding
@Bajix
Sure, but I’d like to use superMap, but in some use cases have lists that pull data from cache, so that I could side-load data using aggregates
There are other places in which I would use findAll normally
Justin Meyer
@justinbmeyer
not totally sure what you mean ...
Thomas Sieverding
@Bajix
I’ll give you a use-case
Justin Meyer
@justinbmeyer
1st ... on using superMap ... well ... yeah it's nice b/c it's small .. but it's ok to create custom connections.
it's harder, but the flexibility is there on purpose.
(this is why i want to add a can-mixin post 3.0 so it's a bit easier to assemble them on your own)