Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 23 20:45

    greenkeeper[bot] on @octokit

    (compare)

  • Oct 23 20:43

    greenkeeper[bot] on @octokit

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

  • Oct 23 19:54

    m-mujica on master

    Update dist for release (compare)

  • Oct 23 19:54

    m-mujica on v6.2.1

    Update dist for release 6.2.1 (compare)

  • Oct 23 19:43
    greenkeeper[bot] closed #5396
  • Oct 23 19:43

    greenkeeper[bot] on can-observable-mixin-1.0.4

    (compare)

  • Oct 23 19:43
    greenkeeper[bot] closed #5395
  • Oct 23 19:43

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

    (compare)

  • Oct 23 19:43

    m-mujica on update

    (compare)

  • Oct 23 19:43

    m-mujica on master

    Update packages to the latest v… Fix bundlesize Merge pull request #5398 from c… (compare)

  • Oct 23 19:43
    m-mujica closed #5398
  • Oct 23 18:57
    m-mujica synchronize #5398
  • Oct 23 18:57

    m-mujica on update

    Fix bundlesize (compare)

  • Oct 23 18:43
    cherifGsoul commented #5397
  • Oct 23 18:39
    matthewp commented #5397
  • Oct 23 18:26
    m-mujica opened #5398
  • Oct 23 18:25

    m-mujica on update

    Update packages to the latest v… (compare)

  • Oct 23 18:19
    cherifGsoul assigned #5397
  • Oct 23 18:19
    cherifGsoul opened #5397
  • Oct 23 18:13
    greenkeeper[bot] labeled #5396
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
Gira Minus
@gKreator
:D
Gira Minus
@gKreator
http://canjs.com/doc/can-stache.helpers.if.html returns true if the property is an empty array
is there any way around that besides creating a helper or something?
Michael Price
@web-mech
{{#if someEmptyArray.length}}stuff{{/if}}
Gira Minus
@gKreator
thx
Michael Price
@web-mech
np
Gira Minus
@gKreator
Whats a good way to have like global stache helpers, just via leakscope?
Gira Minus
@gKreator
http://canjs.com/doc/can-stache.Helpers.html i guess registerHelpers is global, nice
Gira Minus
@gKreator
blob
removeEventListener does not work, guessing it has something to do with the handlers
Brad Momberger
@bmomberger-bitovi
You're saying that the events stay bound to the window after resize_stop is called?
Gira Minus
@gKreator
yes
very strange, didnt run into this in canjs2
Brad Momberger
@bmomberger-bitovi
The usual first place I'd run to to debug this is to determine if the resize_one that got bound to window was the same function as the one you're trying to remove.
(I know, intuitively it looks like just the same object but if you re-created the control for the component, it could possibly create new copies of those functions)
Gira Minus
@gKreator
im guessing its copies
let me check
Brad Momberger
@bmomberger-bitovi
caching it on the window on resize_start and === checking them on resize_stop should be sufficient
Gira Minus
@gKreator
blob
returns undefined
Kevin Phillips
@phillipskevin
try window.addEventListener(‘mouseup’, this.resize_stop.bind(this), false)
Brad Momberger
@bmomberger-bitovi
hm. Now that I can see part of the line at the bottom of the screenshot, you're doing this on the viewModel and not the component's events object.