Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 20:07
    matthewp commented #5384
  • 20:06
    matthewp labeled #5384
  • 20:06
    matthewp opened #5384
  • 19:53
    matthewp opened #5383
  • 16:23
    phillipskevin closed #4841
  • Oct 15 21:43

    phillipskevin on master

    Update dist for release (compare)

  • Oct 15 21:43

    phillipskevin on v6.1.1

    Update dist for release 6.1.1 (compare)

  • Oct 15 21:34

    phillipskevin on can-observable-mixin-1.0.2

    (compare)

  • Oct 15 21:34

    phillipskevin on master

    fix(package): update can-observ… Merge branch 'master' into gree… Merge pull request #5382 from c… (compare)

  • Oct 15 21:34
    phillipskevin closed #5382
  • Oct 15 21:34

    phillipskevin on can-make-map-1.2.2

    (compare)

  • Oct 15 21:34

    phillipskevin on master

    fix(package): update can-make-m… Merge pull request #5380 from c… (compare)

  • Oct 15 21:34
    phillipskevin closed #5380
  • Oct 15 20:30
    phillipskevin synchronize #5382
  • Oct 15 20:30

    phillipskevin on can-observable-mixin-1.0.2

    fix(package): update can-observ… fix(package): update can-simple… Merge pull request #5372 from c… and 2 more (compare)

  • Oct 15 20:30
    phillipskevin opened #5382
  • Oct 15 20:28

    phillipskevin on can-simple-map-4.3.3

    (compare)

  • Oct 15 20:28

    phillipskevin on master

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

  • Oct 15 20:28
    phillipskevin closed #5378
  • Oct 15 20:26

    phillipskevin on can-observable-mixin-1.0.1

    (compare)

Frank Lemanschik
@frank-dspeed
look at the object it got a pending object that is fullfilled
Kevin Phillips
@phillipskevin
I'm not sure what that object representation is
Frank Lemanschik
@frank-dspeed
its exactly whats writen there
:D
the handler has a pending object that has a handler fullfilled and i think that should be copyed over normal to the parent Promise Object
so that isResolved is true
and so that there is value on the Promis Object it self
Kevin Phillips
@phillipskevin
that stuff gets added by can-reflect-promise under the can.observeData Symbol
not directly on the promise instance
Frank Lemanschik
@frank-dspeed
then this don't reads the Promise right
because it says always pending and page don't renders
thanks for the tip will fork a debug version of that
Kevin Phillips
@phillipskevin
ok, if you find an issue, please let us know
Frank Lemanschik
@frank-dspeed
sure sure will make PR then
Kevin Phillips
@phillipskevin
:thumbsup:
Nico R.
@nriesco
is it possible to do something like this? {{#if @index%4 == 0}} show me {{else}} … {{/if}}
Nico R.
@nriesco
I found a workaround: {{#if ../isMod(@index)}}
and then implement isMod (wherever it is, in this case on the VM one level up)
kostya.aderiho
@kaderiho

Hi all, can someone answer please where is a best place to keep custom methods? For example I have some connection:

Attachment.connection = connect(
    [behaviors], {
        Map: Attachment,
        List: Attachment.List,
        name: 'attachment',
        url: BASE_URL,
        ..........
    });

I have also method like getValidFormats (it is not a CRUD method), can I put into connection as well? Thanks.

Nico R.
@nriesco
what is the second parameter of route.data.set? https://canjs.com/doc/can-route.html#data
route.data.set({type: 'page', id: 5}, true); I mean the true parameter here
Nico R.
@nriesco
I’m assuming true => works like UPDATE and false => works like PATCH?
Kevin Phillips
@phillipskevin
it's whether or not to remove other properties
Nico R.
@nriesco
ok, so it confirms my theory, thanks!
Nico R.
@nriesco
old: {(one})=“two”
new: one.bind=“two” => won’t work, am I doing it right?
sorry.. I just realized while typing is one:bind=“two”
Nico R.
@nriesco

I asked this in the wrong forum, but here it goes:

I have a component that I include that loads data for a <select> element. The problem I have is that I need a two way binding because I can either load the selected value from the database value or set it based on the selection. The problem is at loading time it seems that the value is null for a while so it won't read the data from de DB. This won't happen if you reload the page, only when traversing using links within the app.

So the problem looks like in the two way binding when loading the select options it will delete the value of the selected item before finishing loading the options.

Any thougths?

Kevin Phillips
@phillipskevin
can you use an {{#if}} to decide what <option>s to show?
Nico R.
@nriesco

@phillipskevin it looks like this:

{{#if myPromise.isResolved}}
  <select {($value)}="selected">
    <option value="">Select an option</option>
    {{#if defaultvalue}}
      <option value="{{defaultvalue}}" selected>{{defaulttext}} (default)</option>
    {{else}}
      <option>Select an option</option>
    {{/if}}
    {{#each myPromise.value}}
      <option value="{{_id}}">{{name}}</option>
    {{/each}}
  </select>
{{/if}}

and the binding like this:

<my-comonent {(selected)}="selectRetailPackageUnitId" defaultvalue="595aad9aa476ac2b25dce2db" defaulttext="this is default text" />
so it will always load “Select an option"
even if defaultvalue is set or if “selected” value (selectRetailPackageUnitId) has already been retrieved from the DB
it might be related to progressive loading
Nico R.
@nriesco
@phillipskevin generally speaking when reloading everything is fine, but when using route or urls somehow things work in a different way
Kevin Phillips
@phillipskevin
if it's possible to reproduce it in a JSBin that would really help figuring out what's going on
Nico R.
@nriesco
@phillipskevin I removed the progressive loading imports and it works fine
where can I find more information related to progressive loading so I can make it work?
I’ll ask this in donejs forum
Gregg Roemhildt
@roemhildtg
Hi guys, with the new binding syntax, just curious is the old style still supported? `{(value})="value" Or if I upgrade will stuff break?
Jeroen Cornelissen
@jeroencornelissen
it’s still supported (for now)
Gregg Roemhildt
@roemhildtg
:+1:
Kevin Phillips
@phillipskevin
yes, it's still fully supported
we will most likely deprecate the old style in the next minor release and remove it in 4.0
Gregg Roemhildt
@roemhildtg
Cool! I'll give it a test round later this week I think. That is one serious thing I like about canjs, you guys don't just force people to throw out their code like other libraries I've used
Kevin Phillips
@phillipskevin
we'll have a codemod out today that should make the upgrade process really easy
so you can try it out
Gregg Roemhildt
@roemhildtg
Okay :+1: