Where communities thrive


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

    greenkeeper[bot] on steal-2.2.4

    chore(package): update steal to… (compare)

  • Oct 21 18:27
    greenkeeper[bot] labeled #5392
  • Oct 21 18:27
    greenkeeper[bot] opened #5392
  • Oct 21 18:27

    greenkeeper[bot] on core-js-3.3.3

    chore(package): update core-js … (compare)

  • Oct 18 22:20
    greenkeeper[bot] labeled #5391
  • Oct 18 22:20
    greenkeeper[bot] opened #5391
  • Oct 18 22:20

    greenkeeper[bot] on can-observable-mixin-1.0.3

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

  • Oct 18 19:08
    cherifGsoul labeled #5390
  • Oct 18 19:07
    cherifGsoul opened #5390
  • Oct 18 18:45
    greenkeeper[bot] labeled #5389
  • Oct 18 18:45
    greenkeeper[bot] opened #5389
  • Oct 18 18:45

    greenkeeper[bot] on can-observable-bindings-1.3.0

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

  • Oct 18 18:29

    matthewp on master

    Update dist for release (compare)

  • Oct 18 18:29

    matthewp on v6.1.3

    Update dist for release 6.1.3 (compare)

  • Oct 18 17:59

    matthewp on can-observable-array-1.0.2

    (compare)

  • Oct 18 17:59

    matthewp on master

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

  • Oct 18 17:59
    matthewp closed #5388
  • Oct 18 16:46
    greenkeeper[bot] labeled #5388
  • Oct 18 16:46
    greenkeeper[bot] opened #5388
  • Oct 18 16:46

    greenkeeper[bot] on can-observable-array-1.0.2

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

Hitesh Ubharani
@blackmamba
I'd prefer to make it work on viewModel property change
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