Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:17
    phillipskevin opened #5431
  • 17:17

    phillipskevin on six-two-seven

    updating dependencies (compare)

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

    cherifGsoul on update-infrastructure-page

    Update can-queues part (compare)

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

    phillipskevin on can-attribute-observable-2.0.2

    (compare)

  • 17:06

    phillipskevin on master

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

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

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

    (compare)

  • 17:04

    phillipskevin on can-observable-array-1.0.6

    (compare)

  • 17:04

    phillipskevin on master

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

  • 17:04
    phillipskevin closed #5429
  • 17:04
    phillipskevin closed #5428
  • 17:04

    cherifGsoul on update-infrastructure-page

    Update infrastructure page (compare)

  • 15:58
    phillipskevin synchronize #5429
  • 15:58

    phillipskevin on can-observable-array-1.0.6

    updating bundlesize limits (compare)

  • 15:27
    phillipskevin synchronize #5429
  • 15:27

    phillipskevin on can-observable-array-1.0.6

    updating bundlesize limits (compare)

  • 15:04
    phillipskevin opened #5429
  • 04:15
    greenkeeper[bot] commented #5428
Mohamed Cherif Bouchelaghem
@cherifGsoul
@pYr0x you didnt get an email?
Matthew Phillips
@matthewp
we got you julian
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?