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
dylanrtt
@dylanrtt
anyway, I can't upgrade to Stache just yet so I applied an ugly hack where I redefined can/view/bindings in my steal config to point to a custom file that loads the original and then my other custom attrs. it'll work for now and enables the global loading...
Matthew Phillips
@matthewp
That sort of thing works up until a point but doesn't scale to a large app
you wind up loading a lot of stuff, all of the time
dylanrtt
@dylanrtt
yeah I just found out it broke my build lol
Kyle Gifford
@kylegifford
how do I listen for an "add" event triggered by a can.List.replace?
specifically inside a can.Component events object
Kyle Gifford
@kylegifford
looks like I figured it out. you have to put your full event target inside braces
"{scope.placements} add": function() { ... }
where placements is a can.List that could be .replace()'d
Matthew Phillips
@matthewp
Podovi Bitcast in 45 mins... hope everyone is watching: https://plus.google.com/events/cfrtqkdrgabil1tojif1dnlq770
Justin Meyer
@justinbmeyer

@akagomez

How much slower is map.attr('property') than map.property

can't really answer that
you'd have to test
probably quite a bit slower
but still relatively "fast"
I mean it might be 10x slower
but you can still do 100s of them in 10ms
Justin Meyer
@justinbmeyer
I just got a server-side version of CanJS going
well, a DOM-less version
runs on a synthetic DOM
also, I got a webworker stealjs going last night
Matthew Phillips
@matthewp
I'm really excited about this feature.
Chris Gomez
@akagomez
@justinbmeyer Can you use the Define plugin to set your comparator on a can.List?
Justin Meyer
@justinbmeyer
probably not
Chris Gomez
@akagomez
That's cool. Just wanted to make sure I wasn't going crazy. What's your take on something like that?
Morgan Heimbeck
@Xitstrategies
@akagomez you have a map with a define that loads a list and you want to sort it on load or something? not a bad idea. I have wondered if there was something like this as well. because then I wouldn’t need to have additional code in my component or controller before passing it to the view.
Chris Gomez
@akagomez
@Xitstrategies I don’t have a specific use-case yet. Just thinking ahead.
Justin Meyer
@justinbmeyer
The define plugin should be made to work on can.List
it's something we've talked about for a long time
@Xitstrategies you don't need define to do that
you could set this up in your List's init
dylanrtt
@dylanrtt
I defined a can.Control and specified the static setup function. Now when I extend that control, _super no longer works... how can I get it working?
Chris Gomez
@akagomez
@justinbmeyer Should Define’s value have an async setter for cases like this? can.Map conditional async default via Define plugin getter - CanJS
Adam L Barrett
@BigAB

What would be the proper System map and paths configuration for using canjs from bower with the latest steal? I can’t seem to make it work.
trying with

“paths”:
        "can/*" : "bower_components/canjs/steal/can/*.js”
}

just gives me an error:

Error loading "can/control/modifier/key/key" from “app/main” at

The cjs and amd dirs do different errors. Is there a proper way?

Matthew Phillips
@matthewp
i'm guessing that is a plugin that we aren't packaging in bower currently
Adam L Barrett
@BigAB
Ohhh a plugin… that may be it
Matthew Phillips
@matthewp
I guess that's a bug, we went over all of the known plugins but maybe that one was missed
Adam L Barrett
@BigAB
And another can/util/function/function

Well I guess there was this:

warning: can/control/modifier/key is an undocumented and untested plugin and will be removed in a future release.

But who really listens to those anyway. :)

Matthew Phillips
@matthewp
yeah but if it was in 2.1 it should still be there
Justin Love
@JustinLove
http://canjs.com/2.1/docs/can.Model.html doesn't have the detail block in left nav for methods and such.
How do I force a can.Model to update from the server? It's making the request, getting back updated data, and then handing me an old object. (2.1.4)
Justin Love
@JustinLove
The issue may actually be that it's updating the existing model, but not removing deleted items from a child list.
Justin Meyer
@justinbmeyer
@JustinLove created an issue
about the docs
@JustinLove I think you need this: http://canjs.com/docs/can.Model.removeAttr.html
which is in 2.1
@akagomez you should start using jsbin instead of jsfiddle
Also, I don't know what your case is
skimming that code doesn't really tell me much