Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:39
    JuanFelix88 starred canjs/canjs
  • Feb 26 05:49
    hawk-ee starred canjs/canjs
  • Feb 25 18:23
    jxjxnyc starred canjs/canjs
  • Feb 25 14:59
    simondarke starred canjs/canjs
  • Feb 24 04:06
    BenitoJedai starred canjs/canjs
  • Feb 21 16:19
    cherifGsoul labeled #5427
  • Feb 21 16:19
    cherifGsoul labeled #5427
  • Feb 21 16:15
    cherifGsoul labeled #5433
  • Feb 21 16:15
    cherifGsoul commented #5433
  • Feb 21 15:53
    cherifGsoul labeled #5464
  • Feb 21 15:51
    cherifGsoul labeled #5465
  • Feb 21 15:51
    cherifGsoul labeled #5466
  • Feb 21 15:49
    cherifGsoul labeled #5467
  • Feb 21 15:45
    cherifGsoul labeled #5468
  • Feb 21 15:44
    cherifGsoul labeled #5468
  • Feb 20 20:57
  • Feb 20 20:42
    greenkeeper[bot] labeled #5469
  • Feb 20 20:42
    greenkeeper[bot] opened #5469
  • Feb 20 20:42

    greenkeeper[bot] on @octokit

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

  • Feb 18 23:43
    1d0n7kn0w starred canjs/canjs
Brad Momberger
@bmomberger-bitovi
Except for "debugger", "each", "eachOf", "index", "if", "is", "eq", "unless", "with", "console", "data", "switch", "joinBase"
which are technically helpers but are still stache built-ins
Frank Lemanschik
@frank-dspeed
the basics
yes i understand
wow its rendering again :)
Brad Momberger
@bmomberger-bitovi
Great.
I'm going to bed.
Frank Lemanschik
@frank-dspeed
sleep well
i can handle the channel so long :D as i am the only EU member hére no one will ask something
:D
Nico R.
@nriesco
thanks @bmomberger-bitovi that seems like a nice way to use comparison, like this part: https://github.com/stubbornella/oocss/blob/0c146a17e13d7b9d5797ffbf2805ce482cbddd9b/oocss/tools/files/handlebars.helpers.js#L48-L58
Kevin Phillips
@phillipskevin
@frank-dspeed helpers are working fine in can4. is there an issue you're seeing?
RyanMilligan
@RyanMilligan

We're encountering the issue described here: https://forums.donejs.com/t/binding-error-when-removing-form-element/791

We also have a massive memory leak when navigating or removing elements that seems to be related to leaking event handlers, so I suspect they may be related. Has anything been found on this issue?

Frank Lemanschik
@frank-dspeed
@phillipskevin its solved
the problem was that all helpers got handled as expected by can4
so i got only a toString() representation because not doing helperName()
helperName now gets automatic judged as value so he shows it as string
Kevin Phillips
@phillipskevin
k thanks
Frank Lemanschik
@frank-dspeed
@phillipskevin
-make-delegate-event-tree.js:27 Uncaught TypeError: cur.matches is not a function
    at Object.eval (http://master.peep:3030/node_modules/can-dom-events/helpers/-make-delegate-event-tree.js:27:15)
    at String.eval (http://master.peep:3030/node_modules/can-reflect/reflections/shape/shape.js:396:21)
    at Object.eachListLike (http://master.peep:3030/node_modules/can-reflect/reflections/shape/shape.js:327:17)
    at Object.eachIndex (http://master.peep:3030/node_modules/can-reflect/reflections/shape/shape.js:289:16)
    at Object.eachKey (http://master.peep:3030/node_modules/can-reflect/reflections/shape/shape.js:394:16)
    at Object.each (http://master.peep:3030/node_modules/can-reflect/reflections/shape/shape.js:260:16)
    at HTMLHtmlElement.handler.delegated.(anonymous function) (http://master.peep:3030/node_modules/can-dom-events/helpers/-make-delegate-event-tree.js:24:16)
this is what i am sticking around now
:D
i am on the journy to find cur.match
:D
Frank Lemanschik
@frank-dspeed
@phillipskevin now i am sure i found some real problem :)
i puted a console.log into this -make delegate stuff and let it return ev.target === cur
because i wanted to know why cur.matches is not a function
it turns out ev.target === document.body as html
Frank Lemanschik
@frank-dspeed
also solved :) problem was maybe that my new internel helper caused that via return stache(template)(this); inside a value function from inside a viewModel
it can get ignored its probally a antipattern
Runn Vermel
@runn-vermel
i have a new issue that just popped up: i have a select tag, and i'm running a #each loop inside of it. i'm calling a method on change, and i'm trying to pass the selected element's value. this code has historically worked with %element.value - although, for whatever reason, that's not working now. i tried updating it to scope.element.value, like the warning suggested, but i'm still not getting a value back.
<select class="form-control" {($value)}="trainsByPlatform[platform.name]" ($change)="upsertInitialRelease(platform.name, scope.element.value)"> <option></option> {{#each trains[platform.name] as train}} <option value="{{train.name}}">{{train.name}}</option> {{/each}} </select>
any ideas?
Runn Vermel
@runn-vermel
it seems as the scope.element portion is working, but the value isn't being set on the select when an option is chosen
Morgan Heimbeck
@Xitstrategies
change may trigger before value is set... try putting a timeout in the upsertInitialRelease function?
Runn Vermel
@runn-vermel
hmm, if i do that, i'll still be receiving the value as empty tough.
though*
maybe if i put the timeout in the call with an anonymous function.. let me check
oh, wait, that's a v2 link
argh
Morgan Heimbeck
@Xitstrategies
which version of can are you using?
Runn Vermel
@runn-vermel
3
oh, this isn't react, i can't do an anonymous function on the call.
oy.
Runn Vermel
@runn-vermel
that's not it, though - the selectedIndex doesn't change at all when i select a new option, so it's not a timing issue
Runn Vermel
@runn-vermel
where can i find docs about the ($change) method? i assume an event should be passed when this is called?
Nico R.
@nriesco
@runn-vermel try this:
include outside of the loop (#each) an option tag