Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 20:11

    matthewp on master

    Update dist for release (compare)

  • 20:11

    matthewp on v6.2.0

    Update dist for release 6.2.0 (compare)

  • 20:05

    matthewp on master

    Fix bundlesize (compare)

  • 19:22

    matthewp on can-observable-bindings-1.3.0

    (compare)

  • 19:22

    matthewp on master

    fix(package): update can-observ… Set new bundle sizes Merge pull request #5389 from c… (compare)

  • 19:22
    matthewp closed #5389
  • 19:09
    matthewp commented #5389
  • 18:33

    matthewp on can-attribute-observable-2.0.1

    (compare)

  • 18:33

    matthewp on master

    fix(package): update can-attrib… Increase the bundlesize Merge pull request #5394 from c… (compare)

  • 18:33
    matthewp closed #5394
  • 17:59
    matthewp synchronize #5394
  • 17:59

    matthewp on can-attribute-observable-2.0.1

    Increase the bundlesize (compare)

  • 17:42
    matthewp synchronize #5389
  • 17:42

    matthewp on can-observable-bindings-1.3.0

    fix(package): update can-observ… Set new bundle sizes (compare)

  • 17:26
    greenkeeper[bot] labeled #5394
  • 17:26
    greenkeeper[bot] opened #5394
  • 17:26

    greenkeeper[bot] on can-attribute-observable-2.0.1

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

  • 17:15

    matthewp on can-stache-element-1.0.2

    (compare)

  • 17:15

    matthewp on master

    fix(package): update can-stache… Merge pull request #5387 from c… (compare)

  • 17:15
    matthewp closed #5387
Leath Cooper
@IcculusC
kind of a ghetto workaround but it keeps the bloat down and accomplishes something similar to using instanceof
Justin Meyer
@justinbmeyer
define map like a boolean value that differentiates it from a normal map and check for it if it's passed into viewModel and warn from there?
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.