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
Christopher Oliphant
@RALifeCoach
But I have 4 $.gets that I want completed before returning from the main model
Thomas Sieverding
@Bajix
If you have issues with promise compatibility, then wrap it in Q
You’re not following. These are identical:
return new Promise((resolve, reject)=>{
  $.get(url).then(resolve, reject);
});
return $.get(url);
Christopher Oliphant
@RALifeCoach
Ah, in the sub-models, I see - (I think I took that from the CanJS docs)
Thomas Sieverding
@Bajix
That’s a compatability conversion and nothing else
You usually won’t have any issues with compatibility, but if you do, then utilize a dedicated promise library to sort out the inconsistencies
Hence Q($.get(url)).then
Christopher Oliphant
@RALifeCoach
This message was deleted
Christopher Oliphant
@RALifeCoach
The problem turned out to be an undefined variable. The error message was swallowed by CanJS.
And my code is simpler now - thanks
I think that what you guys have done with CanJS is truly amazing. It would be easier if there was better error capturing and reporting, but the way the pieces hang together is amazing.
Thomas Sieverding
@Bajix
That’s just sort of par for the course development
The errors are also not swallowed
Christopher Oliphant
@RALifeCoach
It works without the promise conversions. Quite nice!
Kevin Phillips
@phillipskevin
if there are specific errors (like that one) that get swallowed, open an issue
and we can work on the reporting
Christopher Oliphant
@RALifeCoach
I have created issue canjs/can-connect#136
qantourisc
@qantourisc
Is there a way to not have findAll convert the data to a model ? Since I wish to convert it myself, due to some members that need data-convertion
"Could not get any raw data while converint using .models"
Matthew Phillips
@matthewp
@qantourisc , no but you can use $.ajax directly, might be what you want.
qantourisc @qantourisc double checks
qantourisc
@qantourisc
A ok I see, so I should implement a function not named findAll
Rather anoying that some models would have a differnt api then
@matthewp ok "found it" I was retuning an object not a list. If you return a list of models, canjs accepts this input. So no need, I just had to implement my converter correctly.
Thomas Sieverding
@Bajix
@qantourisc You should implement getListData on a behavior w/ can-connect
Do any conversions with parseInstanceData + the data-parse behavior
Or otherwise use data-url if it’s a simple API use case
Thomas Sieverding
@Bajix
@matthewp I’m experiencing a perplexing issue with done-ssr-middleware suddenly… it ends up polluting my node app w/ front-end variables
Matthew Phillips
@matthewp
that's weird, what sort of variables?
Hady Wahby
@hwahby
Hi, all. I'm looking for a way to reference the ViewModel of a component within the template of that same component. Is there a default binding for this? Similar to '%viewModel', but not restricted to the tag you are defining it on.
Hady Wahby
@hwahby
Nevermind, sorry!
Christopher Oliphant
@RALifeCoach
I have a stache template that is a loop. Inside the loop there is another template. That template also includes a loop. Every 10 seconds I re-read the file and update the viewModel with the new data. When I do that the screen flickers as it is being redrawn. This is a surprize since the data being shown is identical.
I have tried {{#key}} and {{#each key}} - both flicker
Christopher Oliphant
@RALifeCoach
Any ideas on the flicker?
Eben
@eben-roux
@RALifeCoach canjs probably won't be comparing the data --- so if you change just the bits that need changing it may improve the flickering. However, it does sounds like excessive redrawing. Is there no mechanism in canjs that can batch these operations...
typically there would be a start and finish type of thing
Christopher Oliphant
@RALifeCoach
The whole point of CanJS is to create observables and only update when they change.
Eben
@eben-roux
don't know enough about canjs but I can only imagine that something to this effect should exist
true, however, most UIs suffer when there is excessive redrawing
Eben
@eben-roux
AH!
@RALifeCoach would this not do the trick: https://canjs.com/docs/can.batch.html
Christopher Oliphant
@RALifeCoach
That is a 2.3 facility. I understood that in 3.0 batching was built in. Is that correct?
Eben
@eben-roux
oh yes... v3.0 :) --- I have no idea... would be cool but I don't know to what extent something like that would work. I have seen similar user-controlled batching from WinForms to Ember so I would be quite impressed if this probelm is overcome automatically (perhaps using some timing mechanism --- who knows)
Sunil George
@georgesunil81
A quick question - I have a button element with attributes as below -
 <button type="button" class="btn" ($click)='openTask(id)'>Open Task</button>
How do I get the element in my openTask function. I do get the id, but I would like the element (el) and event (ev) too. Any idea?
Kevin Phillips
@phillipskevin
openTask(id, %element, %event)
Sunil George
@georgesunil81
Ah! Thanks @phillipskevin Will try it now.
Christopher Oliphant
@RALifeCoach
@phillipskevin Any insight on my flickering issue?