Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Sep 18 19:32
  • Sep 11 02:59
    torongu starred canjs/canjs
  • Sep 09 06:57
    tbreuss starred canjs/canjs
  • Sep 04 18:58
    cherifGsoul review_requested #5507
  • Sep 04 18:58
    cherifGsoul opened #5507
  • Sep 04 18:51

    cherifGsoul on post-release-script

    Add GitHub release automation (compare)

  • Aug 22 17:54
    ThisIsntMyId starred canjs/canjs
  • Aug 21 08:54
  • Aug 20 20:24
    ktitaro starred canjs/canjs
  • Aug 17 16:53
  • Aug 17 16:51
    kuustudio starred canjs/canjs
  • Aug 14 17:12
    cherifGsoul closed #5494
  • Aug 14 17:07
    cherifGsoul labeled #5490
  • Aug 14 17:05
    cherifGsoul labeled #5492
  • Aug 14 17:04
    cherifGsoul closed #5495
  • Aug 14 17:04
    cherifGsoul closed #5498
  • Aug 13 07:25
    kitoki starred canjs/canjs
  • Aug 11 17:41

    cherifGsoul on can3-youtube-terms-of-service


  • Aug 11 17:41

    cherifGsoul on 3.x-legacy

    Update playlist editor and add … (compare)

  • Aug 11 17:41
    cherifGsoul closed #5506
Frank Lemanschik
i don't even understand how that warning comes and works
where it looks and all that
so i can't do a lot about that i would need to understand stache parser probally
but i am sure its only a little thing but it needs to get found
as that worked befor relativ good
in 3.0
Frank Lemanschik
some one has a idea how to fix this:
can-observation.js:255 Uncaught TypeError: Cannot read property 'valueDependencies' of undefined
    at Function.Observation.updateChildrenAndSelf (can-observation.js:255)
    at eval (can-observation.js:257)
    at Set.forEach (<anonymous>)
    at Function.Observation.updateChildrenAndSelf (can-observation.js:256)
    at Observation.get (can-observation.js:156)
    at Object.getValue (get-set.js:147)
    at Text.branchRenderer (mustache_core.js:329)
    at Text.HTMLSection.targetCallback (html_section.js:151)
    at hydrateCallbacks (can-view-target.js:254)
    at Object.hydrate (can-view-target.js:276)
i have a property editingCard that a set via a event = card
then the stache template has a if clause for if editingCard
it works well i am also using that exact same code and stuff in other components
when i now call removeEdit()
which does this.editingCard = null
this error happens
Frank Lemanschik
i am wondering what value dependencys he is talking about and all this :(
Thomas Sieverding
Are there any resources for finding work specially using CanJS? I love using it, but thus far I’ve only had the privillege of using it in roles in which I’ve been the principal architect, and haven’t been successful in finding CanJS contract work
Frank Lemanschik
CanJS Contract work good question
you would need to apply@bitovi i think justin is the CEO
you can apply also for me
Simply put in your message frank also wants work :sparkles:
Frank Lemanschik
@chasenlehara maybe we should set the topic to,js,output
as the current channel topic here is broken because of usage of canjs 4 as it uses latest
Kevin Phillips
Thanks @frank-dspeed. It's updated now.
Aliaksei Yanachkin
Hi all.
Aliaksei Yanachkin
I have a route like /#!azlistpage with anchor links. By clicking on list item I should scroll to item with matched 'id' like a normal <a href="#a">A</a> <h1 id='a'> A</h1>. Is it possible?
Frank Lemanschik
@ScorpAL scrolling to position at last is possible
Ranjan Subbiah

hey, I am using can-fixture and I was wondering how to avoid getting stringified responses. for example:

let statuses = {
            success: 1,
            statuses: "anything really, just testing!"

        fixture({method: "get", url: "/json/internet/blah/blah/blah"}, function() {
          return statuses

returns statuses as a string

Ranjan Subbiah
never mind, figured it out!
Viktor Busko

Can someone explain visible difference between can observables and stream functionality ? LIke Kefir streams / toStream etc. What is possible with streams that isn't possible with observables ?

For example here: in section where redux-like approach described. There is point:
Having a single, ApplicationViewModel that contains all state, derived using can-define-stream from events dispatched on the ApplicationViewModel.
I cant understand why we need can-define-stream here ? Any observable will have change event as well.

like in 4.0 there is value stream added. But you could have same functionality in set before, isn't it ?
well...if your value was list pushing new items there didn't call set and with value it may be different, but still
Kevin Phillips
streams allow you to define a property based on the current value of other properties as well as the change events of other properties
an example we often give is the City/State picker on
City changes
  • to the selected city
  • to null when any change event happens with state
withOUT streams you had to use a setter on state in order to accomplish this
Viktor Busko
So the benefit is in encapsulation of property behavior in one place right ?
Right - putting all the logic for each property within its own property definition is a big improvement
this is a trivial example... but in larger apps, you can end up with the definition for a property in many places across many different files
it's really easy for this pattern to snowball into a huge problem that makes your code very difficult to change without breaking something else
Viktor Busko
Ok thanks, I think I got the idea.
Kevin Phillips
streams are a good solution to any problem like this
but they're pretty hard to learn
the value behavior is a lot simpler and solves most of the same problems
Frank Lemanschik
why do you think streams are hard to learn
they are a simple observe able
that emit values
Kevin Phillips
because I've tried to teach them to people
and people find them confusing
Frank Lemanschik
hmmm i like teaching streams