Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 16 20:07
    matthewp commented #5384
  • Oct 16 20:06
    matthewp labeled #5384
  • Oct 16 20:06
    matthewp opened #5384
  • Oct 16 19:53
    matthewp opened #5383
  • Oct 16 16:23
    phillipskevin closed #4841
  • Oct 15 21:43

    phillipskevin on master

    Update dist for release (compare)

  • Oct 15 21:43

    phillipskevin on v6.1.1

    Update dist for release 6.1.1 (compare)

  • Oct 15 21:34

    phillipskevin on can-observable-mixin-1.0.2

    (compare)

  • Oct 15 21:34

    phillipskevin on master

    fix(package): update can-observ… Merge branch 'master' into gree… Merge pull request #5382 from c… (compare)

  • Oct 15 21:34
    phillipskevin closed #5382
  • Oct 15 21:34

    phillipskevin on can-make-map-1.2.2

    (compare)

  • Oct 15 21:34

    phillipskevin on master

    fix(package): update can-make-m… Merge pull request #5380 from c… (compare)

  • Oct 15 21:34
    phillipskevin closed #5380
  • Oct 15 20:30
    phillipskevin synchronize #5382
  • Oct 15 20:30

    phillipskevin on can-observable-mixin-1.0.2

    fix(package): update can-observ… fix(package): update can-simple… Merge pull request #5372 from c… and 2 more (compare)

  • Oct 15 20:30
    phillipskevin opened #5382
  • Oct 15 20:28

    phillipskevin on can-simple-map-4.3.3

    (compare)

  • Oct 15 20:28

    phillipskevin on master

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

  • Oct 15 20:28
    phillipskevin closed #5378
  • Oct 15 20:26

    phillipskevin on can-observable-mixin-1.0.1

    (compare)

Matthew Phillips
@matthewp
pull that down, npm install and load bit-tabs.html in your browser
dylanrtt
@dylanrtt
ok omg I guess I was using <can-import></can-import> instead of just <can-import/> which are naturally synonymous to me so I didn't notice they were different
Matthew Phillips
@matthewp
ah :(
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