Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:03
    greenkeeper[bot] labeled #5422
  • 18:03
    greenkeeper[bot] opened #5422
  • 18:03

    greenkeeper[bot] on @feathersjs

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

  • 18:02
    greenkeeper[bot] commented #5401
  • 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
  • Nov 07 17:17

    cherifGsoul on 6-2-5-version

    Bump Version I don't have push… (compare)

  • Nov 07 17:09

    cherifGsoul on v6.2.5

    Update dist for release 6.2.5 (compare)

  • Nov 07 16:49

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

    (compare)

  • Nov 07 16:49

    phillipskevin on can-observable-mixin-1.0.6

    (compare)

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
but the old 3.0 setup should work
Jeroen Cornelissen
@jeroencornelissen

@justinbmeyer Yes, 4.0. My setup is simular to bitballs, with a stache helper that renders a can-import dynamically.
In main.js:

route.data = routing;
route.register('{page}/{subpage}');
route.register('{page}/{subpage}/{itemId}');
route.start();

routing.js:

const Routing = DefineMap.extend('Routing', {
  page: { type: 'string', default: 'tickets' },
  subpage: { type: 'string', default: 'list' },
  itemId: { type: 'string' },
  get pageConfig() {
    if (pageConfigs[this.page] === undefined) {
      this.update({ subpage: 'list', page: 'tickets' }); // default route
      return pageConfigs[this.page];
    } else if (this.page.toLowerCase() === 'tickets') {
      return pageConfigs[this.page];
    } else { // admin
      let pageConfig = pageConfigs[this.page][this.subpage];
      if (pageConfig === undefined) {
        this.subpage = 'settings’; // default admin route
        return pageConfigs[this.page][this.subpage];
      }
      return pageConfig;
    }
  }
});

With possible routes to:
#!/admin/settings
#!/admin/priviliges
#!/tickets/list
#!/tickets/list/{Filter.id}
#!/tickets/detail/{Ticket.id}
...

Justin Meyer
@justinbmeyer
Cool stuff from Chris ... https://forums.donejs.com/t/improving-initial-render-performance-with-can-defer/817 <-- delays expensive component rendering!
oh, you probably don't want to be calling .update() and instead want to use the defaults in .register("...", defaults)
@jeroencornelissen
Jeroen Cornelissen
@jeroencornelissen
Thx, @justinbmeyer. You’re right .update() wasn’t a good idea :clap:
Jeroen Cornelissen
@jeroencornelissen
@justinbmeyer Hmm, I removed the routeUrl helper in my stache also and did the route directly <a href="#!/admin/settings”> and that solved the issue.
When I do: {{routeUrl(page='admin' subpage='settings')}} the route flickers from #!&page=admin&subpage=settings to #!&page=admin&subpage=settings.
Justin Meyer
@justinbmeyer
@jeroencornelissen aren't those identical?
btw, if you are in 4.0, you can can.queues.log("flush") and see the route updates happen