Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 22 20:11

    matthewp on master

    Update dist for release (compare)

  • Oct 22 20:11

    matthewp on v6.2.0

    Update dist for release 6.2.0 (compare)

  • Oct 22 20:05

    matthewp on master

    Fix bundlesize (compare)

  • Oct 22 19:22

    matthewp on can-observable-bindings-1.3.0

    (compare)

  • Oct 22 19:22

    matthewp on master

    fix(package): update can-observ… Set new bundle sizes Merge pull request #5389 from c… (compare)

  • Oct 22 19:22
    matthewp closed #5389
  • Oct 22 19:09
    matthewp commented #5389
  • Oct 22 18:33

    matthewp on can-attribute-observable-2.0.1

    (compare)

  • Oct 22 18:33

    matthewp on master

    fix(package): update can-attrib… Increase the bundlesize Merge pull request #5394 from c… (compare)

  • Oct 22 18:33
    matthewp closed #5394
  • Oct 22 17:59
    matthewp synchronize #5394
  • Oct 22 17:59

    matthewp on can-attribute-observable-2.0.1

    Increase the bundlesize (compare)

  • Oct 22 17:42
    matthewp synchronize #5389
  • Oct 22 17:42

    matthewp on can-observable-bindings-1.3.0

    fix(package): update can-observ… Set new bundle sizes (compare)

  • Oct 22 17:26
    greenkeeper[bot] labeled #5394
  • Oct 22 17:26
    greenkeeper[bot] opened #5394
  • Oct 22 17:26

    greenkeeper[bot] on can-attribute-observable-2.0.1

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

  • Oct 22 17:15

    matthewp on can-stache-element-1.0.2

    (compare)

  • Oct 22 17:15

    matthewp on master

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

  • Oct 22 17:15
    matthewp closed #5387
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
Kevin Phillips
@phillipskevin
you could also test it by testing the DOM wherever it’s used