Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 21 21:15
    greenkeeper[bot] commented #5237
  • Sep 21 21:15

    greenkeeper[bot] on @feathersjs

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

  • Sep 21 21:12
    greenkeeper[bot] commented #5236
  • Sep 21 21:12

    greenkeeper[bot] on @feathersjs

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

  • Sep 21 03:58

    greenkeeper[bot] on @octokit

    (compare)

  • Sep 21 03:57

    greenkeeper[bot] on @octokit

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

  • 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)

Justin Meyer
@justinbmeyer
can/util/util (or can/util/library) is mostly an empty module that is used to map to one of the library modules
Matthew Phillips
@matthewp
i don't think can/util/library is needed any more
Gerard Finnerty
@halcyonandon
I got v2.2.2 via bower and canjs/amd/can/util/library.js exists but canjs/amd/can/util/can.js no longer exists for me
Justin Meyer
@justinbmeyer
@daffl can you take a look at this for 2.2.3
dylanrtt
@dylanrtt
define_test.js just shows nested define using "value"... is there anyway to use it with "Value" like to essentially define new models on the fly?
dylanrtt
@dylanrtt
dylanrtt
@dylanrtt
oops, I think I meant I want to use "Type" instead of "Value" for when a value is already provided and I want to pass through a constructor... but I don't think that works either
Alexis Abril
@alexisabril
lazycan: Did {{#is}} make it into 2.2?
looks like it did :)
Matthew Phillips
@matthewp
it's #eq i believe
Alexis Abril
@alexisabril

eq is an alias for is atm

oh wow, lol, forgot this was markdown
Matthew Phillips
@matthewp
i didn't know that nice
Alexis Abril
@alexisabril
thought check: I’m writing a quick pattern for wrapping up an existing model with some viewmodel characterstics, toggle show/hide, etc(stuff that the model doesn’t care about)
Domain = can.Model.extend({});

ViewModelDomain = Domain.extend({
    define: {
        showChildren: {
            value: true,
            serialize: function() {}
        }
    }
});
inheritance vs wrapping I guess is my question; any preference either way?
Matthew Phillips
@matthewp
if the parent has defines they will be overwritten
but to your question, inheritance would be my preference here.
Gerard Finnerty
@halcyonandon
It is #is, I just started using it myself yesterday and got rid of the helper I made previously
Alexis Abril
@alexisabril
yeah, good call matt
David Luecke
@daffl
@halcyonandon That is indeed a build problem. can/util/library will be back in 2.2.3. can/util/can is now in can/can due to build restrictions. This is what is used internally but if you are loading it explicitly you might have to map it.
Nevermind, can/util/can is back as well
Alexis Abril
@alexisabril
Do we not allow inheriting static methods on a model, such as parseModels? findAll/One seem to be working(I haven’t dug into this yet)
Matthew Phillips
@matthewp
@alexisabril should be able to, at least you can with a Construct
Patrick Clancy
@patrickclancy
Anyone have a recommendation for a grid control? I’ve used dataTables and SlickGrid but I’m looking for other alternatives.
Matthew Phillips
@matthewp
I don't... but if you find one you should wrap it in a Component and release that
Gerard Finnerty
@halcyonandon
imo, canjs with a component-driven approach to a data grid would be much more ideal than using a third party data grid solution and fitting it into a canJS app... cause a data grid with live bindings, controls/components and a service layer for CRUD, would be way better than any alternative I've seen out there
Gerard Finnerty
@halcyonandon
back when I was using backbone and needed data grids, I played around with http://okfnlabs.org/recline/ and https://github.com/wyuenho/backgrid as well as dataTables and SlickGrid, but everything falls short or over complicates and I ended up just building something custom, I wish I had canjs components and two-way binding was a thing back when I was doing heavy data grids
Justin Meyer
@justinbmeyer
@halcyonandon create a project
make @daffl @matthewp and myself a contributor
and lets build it :-)
set it up like bit-tabs
Gerard Finnerty
@halcyonandon
Okay, sounds good, I'll set it up after work today or some time saturday
dylanrtt
@dylanrtt
how would I go about overloading a custom attribute such as can-value? for example, I want additional code to run when can-value gets hooked up but using can.view.attr() seems to overwrite the original
Justin Meyer
@justinbmeyer
@dylanrtt you can only overwrite
but you can probably get the original function
and run it yourself
can.view.attr("can-click") -> callback
dylanrtt
@dylanrtt
yeah I just tried it and it works. thanks
Justin Meyer
@justinbmeyer
well, I was just about to say it might be a bit more complex if you really want to overload
you probably have to remove the old one from can.view.callbacks._regExpAttributes
b/c it looks like can.view.attr will give you back the first match
@/all here's a cool jsbin for 2.2: http://jsbin.com/ledosi/1/edit
Alex
@whitecolor
I've tried to update to 2.2.0 and <comp show-on="{some.someFunc}"/> showOn insde the component is function not its two-way bound value as it was before.
Alex
@whitecolor
last question is solved
Alex
@whitecolor
what is the best way to make using stache by default instead of mustache?
currenlty I have to do prior loading the app
require('can/view/stache/')
can.mustache = can.view.mustache = can.stache
Marshall Thompson
@marshallswain
I'm not sure if this will be useful to you, but It works great for me: Using the new Steal with NPM, if you are loading from a URL you don't have to directly import Stache. You can just do...
var template = require('./template.stache!') then use it in a can.view right away. Steal takes care of the rest.