Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:22

    matthewp on can-observable-bindings-1.3.0

    (compare)

  • 19:22

    matthewp on master

    fix(package): update can-observ… Set new bundle sizes Merge pull request #5389 from c… (compare)

  • 19:22
    matthewp closed #5389
  • 19:09
    matthewp commented #5389
  • 18:33

    matthewp on can-attribute-observable-2.0.1

    (compare)

  • 18:33

    matthewp on master

    fix(package): update can-attrib… Increase the bundlesize Merge pull request #5394 from c… (compare)

  • 18:33
    matthewp closed #5394
  • 17:59
    matthewp synchronize #5394
  • 17:59

    matthewp on can-attribute-observable-2.0.1

    Increase the bundlesize (compare)

  • 17:42
    matthewp synchronize #5389
  • 17:42

    matthewp on can-observable-bindings-1.3.0

    fix(package): update can-observ… Set new bundle sizes (compare)

  • 17:26
    greenkeeper[bot] labeled #5394
  • 17:26
    greenkeeper[bot] opened #5394
  • 17:26

    greenkeeper[bot] on can-attribute-observable-2.0.1

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

  • 17:15

    matthewp on can-stache-element-1.0.2

    (compare)

  • 17:15

    matthewp on master

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

  • 17:15
    matthewp closed #5387
  • 17:15

    matthewp on can-observable-mixin-1.0.3

    (compare)

  • 17:15

    matthewp on master

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

  • 17:15
    matthewp closed #5391
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.
Gira Minus
@gKreator
yup
i guess i could just switch it to the events