Where communities thrive


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

    greenkeeper[bot] on @webcomponents

    (compare)

  • 01:42

    greenkeeper[bot] on @webcomponents

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

  • Nov 12 05:28
    greenkeeper[bot] commented #5392
  • Nov 12 05:28

    greenkeeper[bot] on core-js-3.4.1

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

  • Nov 11 18:03
    greenkeeper[bot] labeled #5422
  • Nov 11 18:03
    greenkeeper[bot] opened #5422
  • Nov 11 18:03

    greenkeeper[bot] on @feathersjs

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

  • Nov 11 18:02
    greenkeeper[bot] commented #5401
  • Nov 11 18:02

    greenkeeper[bot] on @feathersjs

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

  • Nov 10 23:39

    greenkeeper[bot] on @octokit

    (compare)

  • Nov 10 23:37

    greenkeeper[bot] on @octokit

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

  • Nov 08 16:08
    greenkeeper[bot] labeled #5421
  • Nov 08 16:08
    greenkeeper[bot] opened #5421
  • Nov 08 16:08

    greenkeeper[bot] on can-stache-bindings-5.0.2

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

  • Nov 07 17:31

    cherifGsoul on 6-2-5-version

    (compare)

  • Nov 07 17:31
    cherifGsoul closed #5420
  • Nov 07 17:30

    cherifGsoul on master

    Update dist for release (compare)

  • Nov 07 17:28
    cherifGsoul edited as member
  • Nov 07 17:27
    cherifGsoul added as member
  • Nov 07 17:17
    cherifGsoul opened #5420
Viktor Busko
@Lighttree
@phillipskevin regarding slowness of forms guide I'm not sure that this is ok solution, but lazy loading of iframes may help and quick. I think you can insert urls to examples as soon as we scroll page, and examples will load their dependencies not on page load but as we scroll.
Kevin Phillips
@phillipskevin
thanks
I'm going to open an issue now and throw out some ideas
Julian
@pYr0x
@justinbmeyer my teaser proposal: yes, you canJS
Matthew Phillips
@matthewp
hah
Julian
@pYr0x
  • you can write great user experience web apps
  • you can use innovative features
  • you can structure your codebase better
etc.. :)
... you are the maker and we can help you
Julian
@pYr0x
This message was deleted
Matthew Phillips
@matthewp
cutesy stuff like that is fun... but it is different from a library's core message
with donejs it kind of makes sense though, "Your app. Done." says what donejs is about
I'm not sure that can puns do the same.
Frank Lemanschik
@frank-dspeed
canjs should simply point out that it is the best Frontend Framework for Websites and also Single Page Applications supporting all Futures and is also compatible to existing other frameworks so you can use it as much as you like.
Mohamed Cherif Bouchelaghem
@cherifGsoul
thank you @frank-dspeed
@frank-dspeed "CanJS is an evolving and improving set of client side JavaScript architectural libraries that balances innovation and stability." the word "architectural" means "freedom"
Dovid Bleier
@dbleier
is there any way to do two-way binding with a textarea?
Mohamed Cherif Bouchelaghem
@cherifGsoul
@dbleier <textarea value:bind="prop"></textarea> https://jsbin.com/danazep/edit?html,js,output
Dovid Bleier
@dbleier
@cherifGsoul interesting since textarea doesn't have a value attribute, thanks - I'll try it
works!
thanks
Mohamed Cherif Bouchelaghem
@cherifGsoul
no problem
Nico R.
@nriesco
Hi, I’m having trouble when sorting a DefineList
this is the error:
TypeError: Cannot read property 'Symbol(zone-eventhandler)' of undefined
    at AnchorElement.<anonymous> (/Users/nriesco/git/riescorp/donejs-base/node_modules/can-zone/lib/tasks.js:207:27)
    at AnchorElement.wrappedFn [as removeEventListener] (/Users/nriesco/git/riescorp/donejs-base/node_modules/can-zone/register.js:101:43)
    at AnchorElement.removeEventListener (file:/Users/nriesco/git/riescorp/donejs-base/node_modules/can-util/dom/events/events.js:31:28)
    at AnchorElement.events.removeEventListener (file:/Users/nriesco/git/riescorp/donejs-base/node_modules/can-util/dom/events/make-mutation-event/make-mutation-event.js:90:25)
    at AnchorElement.events.removeEventListener (file:/Users/nriesco/git/riescorp/donejs-base/node_modules/can-util/dom/events/attributes/attributes.js:80:24)
    at AnchorElement.events.removeEventListener (file:/Users/nriesco/git/riescorp/donejs-base/node_modules/can-util/dom/events/make-mutation-event/make-mutation-event.js:90:25)
    at AnchorElement.domEvents.removeEventListener (file:/Users/nriesco/git/riescorp/donejs-base/node_modules/can-util/dom/attr/attr.js:657:32)
    at AnchorElement.removeEventListener (file:/Users/nriesco/git/riescorp/donejs-base/node_modules/can-dom-events/helpers/add-event-compat.js:78:33)
    at AnchorElement.removeEventListener (file:/Users/nriesco/git/riescorp/donejs-base/node_modules/can-dom-events/helpers/add-event-compat.js:78:33)
    at AnchorElement.off (file:/Users/nriesco/git/riescorp/donejs-base/node_modules/can-event/can-event.js:231:22)
It happens sometimes (after reloads, and I need to restart the app to make it work again)
what causes the issue is this: data.sort(sorter);
I simplified sort to avoid errors: var sorter = function(a, b) { return true; };
I even tried using try/catch if (data instanceof DefineList)
Nico R.
@nriesco
I think is the server side rendering that is failing
Nico R.
@nriesco
this only affects the initial load, I thought I had a way to sort data after loading, but that seems to be a big splinter left to remove
Nico R.
@nriesco
It seems to me that there must be a condition where I should not sort, something like if (data instanceof DefineList) data.sort(sorter) so I don’t sort when some criteria is not met. The thing is that not even try/catch will stop it from failling so I really need to know in advance what to verify.
or data.isSortable or DefineList.isSortable(data)
Ranjan Subbiah
@ranjanbuilds

hey all, I'm using can-fixture ike this:

let randoProgress = chance.pickone(['exploration', 'design', 'construction', 'lighting', 'expansion']);
let stagesResponse = {
    stages: {
        progress: randoProgress
    },
    success: 1
}

Fixture('GET /json/internet/get_town_stages', function() {
    return stagesResponse;
});

And then I do some testing. But at some point I need to modify stagesReponse and test. What's the best way to do this?

Kevin Phillips
@phillipskevin
can't you just modify it?
is there some reason that won't work? or are you just wondering if that's the best approach?
Ranjan Subbiah
@ranjanbuilds
yeah, tried that and it was throwing an error, but I am realizing it might have more to do with chai as promised.
but also, yeah, is it the best way? Or should I be using https://canjs.com/doc/can-fixture.requestHandler.html. Was curious as to how to mock fail response.
Kevin Phillips
@phillipskevin
I think either way is fine
https://canjs.com/doc/can-fixture.response.html has some examples of how to mock failures
Matthew Phillips
@matthewp
https://www.bitovi.com/blog/donejs-2.0 DoneJS 2.0 is out everyone!
Jeroen Cornelissen
@jeroencornelissen
Having a routing issue where my route changes from /#!&page=admin&subpage=settings to /#!admin/settings, immidiatly but you can see it flicker.
When I do history.back() it changes back to /#!&page=admin&subpage=settings and stays like this.
Registered routes:
route.register('{page}/{subpage}');
route.register('{page}/{subpage}/{itemId}’);
Justin Meyer
@justinbmeyer
@pYr0x good one .... yes we canJS!
@jeroencornelissen this is with 4.0?
what does your setup look like?
I updated the chat guide to a "better" setup