Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 14 21:13
    greenkeeper[bot] labeled #5378
  • Oct 14 21:12
    greenkeeper[bot] opened #5378
  • Oct 14 21:12

    greenkeeper[bot] on can-simple-map-4.3.3

    fix(package): update can-simple… (compare)

  • Oct 14 20:19
    greenkeeper[bot] labeled #5377
  • Oct 14 20:19
    greenkeeper[bot] opened #5377
  • Oct 14 20:19

    greenkeeper[bot] on @feathersjs

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

  • Oct 14 20:18
    greenkeeper[bot] labeled #5376
  • Oct 14 20:18
    greenkeeper[bot] opened #5376
  • Oct 14 20:18

    greenkeeper[bot] on @feathersjs

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

  • Oct 14 14:43
    greenkeeper[bot] closed #5373
  • Oct 14 14:43

    greenkeeper[bot] on can-deep-observable-1.0.1

    (compare)

  • Oct 14 14:42

    m-mujica on update-deep-observable

    (compare)

  • Oct 14 14:42

    m-mujica on master

    Update can-deep-observable to l… Merge pull request #5374 from c… (compare)

  • Oct 14 14:42
    m-mujica closed #5374
  • Oct 14 14:42
    m-mujica closed #5365
  • Oct 14 14:09
    f-ricci starred canjs/canjs
  • Oct 14 13:55
    greenkeeper[bot] commented #5375
  • Oct 14 13:55

    greenkeeper[bot] on core-js-3.3.2

    chore(package): update core-js … (compare)

  • Oct 14 10:51
    m-mujica review_requested #5374
  • Oct 14 07:43
    rjgotten commented #5358
Brad Momberger
@bmomberger-bitovi
You can try importing can-stache-bindings directly, but I think your issue might be elsewhere, like if you're creating a context around the place where you're doing this binding (like, if you made a stache section)
Gira Minus
@gKreator
omg
it only works if the value is a number
wtf
Brad Momberger
@bmomberger-bitovi
Your viewmodel is a DefineMap?
Gira Minus
@gKreator
and it does not update the map
yes
Brad Momberger
@bmomberger-bitovi
I had a similar problem recently that made a property undefined all the time, and it was due to a separate definition setter happening that blanked out the value. I don't know if that's your issue, but maybe try commenting out your other defined values
Gira Minus
@gKreator
just noticed something crazy
nested properties are bleeding into the parent object of my definemap
Brad Momberger
@bmomberger-bitovi
a-ha. That is crazy
Gira Minus
@gKreator
blob
why would this be happening
lol
omg
im giving up
after 3 more hours
Brad Momberger
@bmomberger-bitovi
Weird that there's meow but not driver_name
Gira Minus
@gKreator
well technically it wants 123 and it cannot be 123 since it is a number
Brad Momberger
@bmomberger-bitovi
Well also, 123asd is a value of a prop and also a prop itself.
That's not right. Something is off.
Gira Minus
@gKreator
canjs is broken
Brad Momberger
@bmomberger-bitovi
can I see some snippets of your stache?
Gira Minus
@gKreator
blob
Brad Momberger
@bmomberger-bitovi
Oh, minor quibble here.
Gira Minus
@gKreator
hmm?
Brad Momberger
@bmomberger-bitovi
You have the {($value)} attribute values in magic tags.
Gira Minus
@gKreator
omg
:/
fml
Brad Momberger
@bmomberger-bitovi
{{truck.truckNumber}} should be just truck.truckNumber, for example
Gira Minus
@gKreator
yes
thats why it was binding back the model back to itself in some weird space time event
not sure how my cpu did it
Brad Momberger
@bmomberger-bitovi
Is that unblocking you?
Gira Minus
@gKreator
yup that fixed it
just gotta make sure it works with ajax now so im rewriting it again i deleted stuff to debug
thanks tho
Brad Momberger
@bmomberger-bitovi
:+1:
Gira Minus
@gKreator
and ajax works
Brad Momberger
@bmomberger-bitovi
Gooood stuff
Gira Minus
@gKreator
omg i spent like 8 hours on this in the last like 2 days
even made a jsbin and such
i wish canjs would throw an error for dumb stuff like that but ohh well
Brad Momberger
@bmomberger-bitovi
It's not necessarily wrong, it's just like doing double dollarsigns in PHP, like "take this value and use it as the key"
Gira Minus
@gKreator
ahh true
Brad Momberger
@bmomberger-bitovi
Maybe it's not the way an opinionated framework would do it. But without that we wouldn't have any way of dynamically declaring bindings
We should solicit some community feedback, and see who's more harmed by rejecting it vs not.
Gira Minus
@gKreator
and canjs gods, im sorry for ever doubting you