Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 04 22:03
    chasenlehara opened #5440
  • Dec 04 22:03
    chasenlehara labeled #5440
  • Dec 04 19:18
    cherifGsoul review_requested #5432
  • Dec 04 14:09
    m-ahmadi starred canjs/canjs
  • Dec 04 10:52
    ansyeow starred canjs/canjs
  • Dec 03 14:53
    matthewp commented #5439
  • Dec 03 14:30
    frank-dspeed opened #5439
  • Dec 02 18:13
    greenkeeper[bot] commented #5392
  • Dec 02 18:13

    greenkeeper[bot] on core-js-3.4.7

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

  • Dec 02 17:48
    greenkeeper[bot] commented #5392
  • Dec 02 17:48

    greenkeeper[bot] on core-js-3.4.6

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

  • Dec 02 15:38
    phillipskevin commented #5438
  • Dec 02 15:38
    phillipskevin closed #5438
  • Dec 02 15:38
    phillipskevin commented #5438
  • Dec 01 23:28
    justinbmeyer commented #5438
  • Dec 01 23:06
    justinbmeyer commented #5438
  • Dec 01 23:06
    justinbmeyer commented #5438
  • Dec 01 23:04
    justinbmeyer edited #5438
  • Dec 01 23:03
    justinbmeyer opened #5438
  • Nov 29 15:01
    cherifGsoul synchronize #5432
Gregg Roemhildt
@roemhildtg
(jk)
Brad Momberger
@bmomberger-bitovi
Heh, thanks! You might consider releasing it as a general library for Dojo accessors though!
Gregg Roemhildt
@roemhildtg
I don't think dojo itself uses this, tbh I'm not sure of the Accessor's origins. I think it came from esri and the esri api (which was built on dojo)
Brad Momberger
@bmomberger-bitovi
ah, well, I can't claim knowledge of the ecosystem
Morgan Heimbeck
@Xitstrategies
Anyone else having issues with can-zone eating console errors/warnings that are important to finding issues in there code?
Frank Lemanschik
@frank-dspeed
@Xitstrategies i can claim knowleg of 80% active code over all modules
:D
no that issue does not exist can zone never swallows errors
but there is a known bug with nested setTimeout Functions
that for example blocks socket.io from working correctly with zones
if you want to know more about the logging in canJS
that is a t present part of can-util/dev/dev
that is depricated and now
can-log/dev/dev :)
but to make it more short done-autorender which uses zones has a option called no-zone
which bypasses zones complet :)
Gregg Roemhildt
@roemhildtg
@bmomberger-bitovi So I'm working on this can symbol observability stuff again today, and I'm back at a point where I'm not sure what's wrong. I've found out that the watch function doesn't always work, when working with nested objects, so to workaround that, I've modified my function to use .watch('center.longitude'...) which does work. The template renders the initial value, but the template still isn't getting updated when the values change. My onKeyValue handler is getting called. But my getKeyValue is not getting called after that which is where I believe the problem lies.
Kevin Phillips
@phillipskevin
I haven't really been following what you're trying to do, but from looking at that code it looks like your onKeyValue doesn't actually call your handlers
Gregg Roemhildt
@roemhildtg
Line 42, I think it does, unless I'm missing something.
Kevin Phillips
@phillipskevin
but that's just when the watch is triggered, right?
sorry, maybe that makes sense
so you're saying onKeyValue is called, then whatever triggers watch happens, and your handlers don't update the template?
Gregg Roemhildt
@roemhildtg
Right
Kevin Phillips
@phillipskevin
ok
getKeyValue shouldn't have to be called after that in order for it to work
Gregg Roemhildt
@roemhildtg
I think I have it working pretty much like I have in my dev setup
Brad Momberger
@bmomberger-bitovi
I think you might be doing too many handler dispatches. You make a watch for every onKeyValue, but each watch handler goes over the entire handlers list.
I don't know that this is the root of the live problem, but it couldn't hurt to clean that up.
Oh! I do see one thing that might be a problem with your @@can.getKeyValue. It's using can-util/js/get/get, which doesn't use canReflect.getKeyValue to access properties.
Brad Momberger
@bmomberger-bitovi
If you want to read deep paths on an object, I would recommend trying can-stache-key.get instead.
Gregg Roemhildt
@roemhildtg

You make a watch for every onKeyValue, but each watch handler goes over the entire handlers list.

I'm not following, shouldn't each watch handler call each handler that is listening for that key's changes?

Brad Momberger
@bmomberger-bitovi
If you have two watches on one key, and that key changes, then two watches each call two handlers.
Gregg Roemhildt
@roemhildtg
Ohh, I see
Yes that would happen
Gregg Roemhildt
@roemhildtg
I'm not sure how to use can-stache-key, but what if I just add observation.add(obj, key) to the get function from can-util?
wouldn't that trigger the getKeyValue
Brad Momberger
@bmomberger-bitovi
Yeah, if you want to just copy and modify the get function, that should work too
Frank Lemanschik
@frank-dspeed
does somebody in here maybe know the behavier of steal optimized bundels from done-autorender (done-apps)?
the bundels are including the needed code but i think some init stuff is needed that not done automaticly
i think as steal optimize gets the index.stache!done-autorender
it should autorender as expected behavier right?
Chasen Le Hara
@chasenlehara
^ I don’t think we’ve finished making the optimized builds work in a regular DoneJS app, maybe @matthewp can comment though
Matthew Phillips
@matthewp
Optimized builds do not work with done-autorender apps, that is correct.
Going to start working on it soon hopefully.
Nico R.
@nriesco
Hi, I found this in the docs: https://canjs.com/doc/can-validate.html but couldn’t understand how to use it in a form, any ideas?
I was looking for an easy way to support HTML “required” fields
Nico R.
@nriesco
or providing a custom method
swipie
@swipie
We get a lot of warnings about a property that is not in the current scope and that the property is read from the parent scope. It is resolved when we do {{ ../myprop}} instead of {{myprop}} but is this the right way to solve these warnings?