Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 20 19:48

    phillipskevin on master

    Update dist for release (compare)

  • Nov 20 19:48

    phillipskevin on v6.2.7

    Update dist for release 6.2.7 (compare)

  • Nov 20 19:30

    phillipskevin on six-two-seven

    (compare)

  • Nov 20 19:30
    phillipskevin closed #5431
  • Nov 20 19:19
    phillipskevin synchronize #5431
  • Nov 20 19:19

    phillipskevin on six-two-seven

    updating dependencies (compare)

  • Nov 20 18:53
    cherifGsoul review_requested #5432
  • Nov 20 18:52
    cherifGsoul opened #5432
  • Nov 20 18:49

    cherifGsoul on update-api-page

    Update API page (compare)

  • Nov 20 17:17
    phillipskevin opened #5431
  • Nov 20 17:17

    phillipskevin on six-two-seven

    updating dependencies (compare)

  • Nov 20 17:11
    cherifGsoul synchronize #5430
  • Nov 20 17:11

    cherifGsoul on update-infrastructure-page

    Update can-queues part (compare)

  • Nov 20 17:08
    cherifGsoul opened #5430
  • Nov 20 17:06

    phillipskevin on can-attribute-observable-2.0.2

    (compare)

  • Nov 20 17:06

    phillipskevin on master

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

  • Nov 20 17:06
    phillipskevin closed #5426
  • Nov 20 17:05

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

    (compare)

  • Nov 20 17:04

    phillipskevin on can-observable-array-1.0.6

    (compare)

  • Nov 20 17:04

    phillipskevin on master

    fix(package): update can-observ… updating bundlesize limits Merge pull request #5429 from c… (compare)

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
Justin Meyer
@justinbmeyer
@/all We are about to discuss the survey proposals: https://www.youtube.com/watch?v=EEBytcIX7oA
Jeroen Cornelissen
@jeroencornelissen
@justinbmeyer sorry I meant from ... to #!admin/settings.
Jared Stehler
@jaredstehler
Anyone have tips on troubleshooting stache timeout errors?
Potentially unhandled rejection [4] Error: Timeout of 5000 exceeded at eval (http://localhost:8082/src/index.stache:247:17) at eval (http://localhost:8082/node_modules/can-zone/lib/tasks.js:149:15) at Task.run (http://localhost:8082/node_modules/can-zone/lib/zone.js:41:17) at Zone.runTask (http://localhost:8082/node_modules/can-zone/lib/zone.js:183:14)
then a bunch of