Where communities thrive


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

    greenkeeper[bot] on @octokit

    (compare)

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

  • 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
Hitesh Ubharani
@blackmamba
Would appreciate any help
isadovskiy
@isadovskiy
Guys, di you know if it's possible to use ES6 class syntax to extend from canjs base classes?
Matthew Phillips
@matthewp
It's not possible in 2.3
In 3.0 you can use class with can-define
isadovskiy
@isadovskiy
thanks, @matthewp
Justin Meyer
@justinbmeyer
@isadovskiy it's possible but most of the derived classes wont work in the right way
even in 3.0.
The problem is there's no "extended" hook
with ES6 class syntax
maybe we make it possible to call that hook programmatically in 3.0
class Person extends DefineMap {
  ...
}
DefineMap.setup.call(Person)
Justin Meyer
@justinbmeyer
isadovskiy
@isadovskiy
thanks for the headups, @justinbmeyer
Eben
@eben-roux
hello, anyone here?
Julian
@pYr0x
yep
@phillipskevin can you confirm that your CDN guide http://stealjs.com/docs/StealJS.loading-from-cdn.html works with steal 1.0?
i dont get it to work....
especially the instantiated part
Julian
@pYr0x
i have to use the full module name
"jquery@2.2.4#dist/jquery": { 'default': window.jQuery, __useDefault: true }
Julian
@pYr0x
@justinbmeyer if you are documenting can-stache please have a look into these canjs/can-stache#33 and canjs/can-stache#32 . maybe you can add documentation for that as well :)
Leath Cooper
@IcculusC
hello
anyone got any idea on the best strategy for using feathers authentication with a canjs app that's being served with steal
Matthew Phillips
@matthewp
@IcculusC I haven't used it, but probably this: https://github.com/feathersjs/can-connect-feathers
Leath Cooper
@IcculusC
@matthewp thanks man that looks promising!
the-learning-man
@the-learning-man
Hi All… is there a published release date for canjs 3.0?
Matthew Phillips
@matthewp
No, we don't do release dates
Neither does any other framework to my knowledge
we are working on it every day though!
look at all of the updated dates
the-learning-man
@the-learning-man
Thanks @matthewp
the https://canjs.com/docs/index.html docs show a [canjs V3-pre] option
the reason for asking is: I would like to use canjs with webpack/bower instead of steal...
the-learning-man
@the-learning-man
and had come across somewhere that v3 will be cjs compliant and not be reliant on steal.
Guido Smeets
@gsmeets
anyone happen to have any experience wrapping js from c#?
Matthew Phillips
@matthewp
@the-learning-man that's true, you are welcome to use 3.0-pre if you want
2.3 is not reliant on steal either, there are commonjs builds
but 3.0 is written in cjs so it will be even more "compatible", I guess that's true
but there are definitely people using webpack/browserify already
Mason Shin
@minsooshin
anyone can help how to use helper method of component in the QUnit test?
helpers: {
    prettify(count, type) {
    const pluralizedType = pluralize(type, count);

    if (count === 0) {
      return `No ${pluralizedType}`;
    }
    return `${count} ${pluralizedType}`;
  }
}
I have a helper method like this
import { ViewModel } from './confirmation’;

QUnit.module('Confirmation page of OOBE', {
  setup: function() {
    this.vm = new ViewModel();
    const template = can.stache('<sc-confirmation />');

    $('#qunit-fixture').html(template());

    this.$component = F('#qunit-fixture').find('sc-confirmation');
    this.vm = can.viewModel(this.$component);
  }
});
Kevin Phillips
@phillipskevin
you could just export that function from your module
Mason Shin
@minsooshin
this is my test setup
Kevin Phillips
@phillipskevin
export function prettify(count, type) {
  const pluralizedType = pluralize(type, count);

  if (count === 0) {
    return `No ${pluralizedType}`;
  }
  return `${count} ${pluralizedType}`;
}

...

helpers: {
  prettify
}
Mason Shin
@minsooshin
got it
that totally makes sense
thanks