These are chat archives for canjs/canjs

8th
Nov 2016
Frank Lemanschik
@frank-dspeed
Nov 08 2016 03:01
yes
@halcyonandon all are havy investigating here into that too :) on the steal and steal-tools side
canJS as you know already plays well with all others
Gregg Roemhildt
@roemhildtg
Nov 08 2016 04:08
@halcyonandon that makes sense. Yes, that's what I didn't like about learning angular, and what made canjs a lot easier to use. The soc, and also the binding syntaxes. Once you get the binding patterns, it's easy where vue and ng have special tags for logic you have to memorize
Julian
@pYr0x
Nov 08 2016 10:40
@justinbmeyer is canjs/can-devtools a working chrome extension?
Frank Lemanschik
@frank-dspeed
Nov 08 2016 13:45
not realy often :D
Guido Smeets
@gsmeets
Nov 08 2016 13:45
is there a 2.3/3.0 browser compatibility matrix available?
Or is it a really short list? :)
I reckon IE8 will be dead with 3.0, but what about IE9/10?
Frank Lemanschik
@frank-dspeed
Nov 08 2016 13:46
Guido v3.canjs.com all info you need
it looks like all is compatible in general
only some code adjustments some times minor once
Kevin Phillips
@phillipskevin
Nov 08 2016 13:56
@gsmeets IE9/IE10 is supported
in 3.0
you can see where we’re running our tests in github https://github.com/canjs/canjs
Frank Lemanschik
@frank-dspeed
Nov 08 2016 13:58
@phillipskevin do you know how this browser tests are done does it use the firefox from the travis image?
Kevin Phillips
@phillipskevin
Nov 08 2016 13:58
we’re running the tests in Sauce Labs
Frank Lemanschik
@frank-dspeed
Nov 08 2016 13:58
local my browser tests always fail or lets say it opens a browser and expecting manual actions?
Kevin Phillips
@phillipskevin
Nov 08 2016 13:59
fails when you do what?
Frank Lemanschik
@frank-dspeed
Nov 08 2016 13:59
they don't finish :)
they open a browser and do nothing
Kevin Phillips
@phillipskevin
Nov 08 2016 13:59
what command are you running I mean
Frank Lemanschik
@frank-dspeed
Nov 08 2016 13:59
when i click elements some test pass
npm test :)
its using func unit tests i think
Kevin Phillips
@phillipskevin
Nov 08 2016 14:00
there are a few integration tests that use funcunit
Frank Lemanschik
@frank-dspeed
Nov 08 2016 14:00
nope
i think its testee sorry
i am sure :)
Kevin Phillips
@phillipskevin
Nov 08 2016 14:00
they’re definitely working
Frank Lemanschik
@frank-dspeed
Nov 08 2016 14:01
so the tests should be fully automated right? or does they expect user input?
Kevin Phillips
@phillipskevin
Nov 08 2016 14:01
they’re fully automated
npm test uses firefox by default
Frank Lemanschik
@frank-dspeed
Nov 08 2016 14:01
then there is something wrong with donejs on my system and canjs
ya it does the same on my system opens test page but does nothing
then i can click some elements and some tests pass
Kevin Phillips
@phillipskevin
Nov 08 2016 14:01
is there an error in the console?
Frank Lemanschik
@frank-dspeed
Nov 08 2016 14:01
nope all good
page opens no console errors even tests are passing
Kevin Phillips
@phillipskevin
Nov 08 2016 14:02
run DEBUG=testee:* npm test
Frank Lemanschik
@frank-dspeed
Nov 08 2016 14:02
i was only wondering why its not automated
Kevin Phillips
@phillipskevin
Nov 08 2016 14:03
ok
it is :smile:
Frank Lemanschik
@frank-dspeed
Nov 08 2016 14:03
ya good to know then i need to look what happens here because when i get that all others get that too
i am the reference :D
Kevin Phillips
@phillipskevin
Nov 08 2016 14:04
we have lots of contributors that aren’t getting that though
but yeah, we should figure out why it’s not working for you
Frank Lemanschik
@frank-dspeed
Nov 08 2016 14:04
ya but your contributors use most time tech from 15 years ago
:D
i have a new pc and current operating system and kernel and all that
as also current nodejs
on my system donejs 2.3 isn't install able :)
because so much deprecated warnings and that
Kevin Phillips
@phillipskevin
Nov 08 2016 14:05
open an issue
Frank Lemanschik
@frank-dspeed
Nov 08 2016 14:06
nope i fix the issu project wide at present :)
issu opening brings nothing as you can't reproduce probally :)
Kevin Phillips
@phillipskevin
Nov 08 2016 14:07
I don’t know how to help you then
Frank Lemanschik
@frank-dspeed
Nov 08 2016 14:07
i fix it at present you probally saw i am investigating into all packages over steal till yeoman till gulp till donejs canjs testee
you helped me :D
thx a lot the info that it should be automated is the helpfullest info i got :)
now i know the problem so i can fix it
Kevin Phillips
@phillipskevin
Nov 08 2016 14:08
ok
Nico R.
@nriesco
Nov 08 2016 21:42
I have a quick question related to superMap
if I do this.save it will create or update an item
but how do I trigger deleting an item?
I tried with ($click)="destroy()” and that will remove the item locally but not from the database
Kevin Phillips
@phillipskevin
Nov 08 2016 21:44
that should be right
can you check what http call is made when you call destroy?
it should trigger a DELETE
Nico R.
@nriesco
Nov 08 2016 21:49
ok, I’ll change to REST mode and see what is being transmitted
@phillipskevin it worked, so is my version of can-connect-feathers that is having trouble with sockets… thanks for the help I was confused
Kevin Phillips
@phillipskevin
Nov 08 2016 21:52
no problem
good luck getting it sorted out
Nico R.
@nriesco
Nov 08 2016 21:53
it’s a little bit harder to debug but I’ll find it eventually
Kevin Phillips
@phillipskevin
Nov 08 2016 21:53
yeah
Nico R.
@nriesco
Nov 08 2016 22:05
fixed!
Kevin Phillips
@phillipskevin
Nov 08 2016 22:05
great
Nico R.
@nriesco
Nov 08 2016 22:05
the implementation of remove was sending the original data but needed an empty object to really delete it
Kevin Phillips
@phillipskevin
Nov 08 2016 22:06
ah, ok
Nico R.
@nriesco
Nov 08 2016 22:06
if anyone is interested I’m working in making can-connect-feathers work with websockets
and authentication
at least find, get and remove are working...
Kevin Phillips
@phillipskevin
Nov 08 2016 22:06
I’m sure @marshallswain will be interested
Nico R.
@nriesco
Nov 08 2016 22:07
@marshallswain please approve the PR :-)
Nico R.
@nriesco
Nov 08 2016 22:14
another quick question: I’ve seen several times this in the tutorials todo: {Value: Todo}, why is Value instead of value isn’t javascript case sensitive? Is this intentional or just a typo?
Kevin Phillips
@phillipskevin
Nov 08 2016 22:15
it’s intentional
Value is expecting a constructor
Nico R.
@nriesco
Nov 08 2016 22:17
oh I see...
Frank Lemanschik
@frank-dspeed
Nov 08 2016 22:17
Maybe some one Point out in general the MVVM Process :) a view is always a constructor isnt it
Nico R.
@nriesco
Nov 08 2016 22:18
another quick question: I’ve seen this var1: ‘string'
does that mean is just any string or that the type is a string?
Kevin Phillips
@phillipskevin
Nov 08 2016 22:19
for can-define?
Nico R.
@nriesco
Nov 08 2016 22:19
not sure, I’m looking for an example
Kevin Phillips
@phillipskevin
Nov 08 2016 22:20
for can-define/map, yeah, that’s the type
Nico R.
@nriesco
Nov 08 2016 22:20
it might have been for a define property of a can.Map
Kevin Phillips
@phillipskevin
Nov 08 2016 22:20
if the property definition is a string, it's considered a type setting to be looked up in can-define.types.
Nico R.
@nriesco
Nov 08 2016 22:20
is can-define/map the same as defineMap?
Frank Lemanschik
@frank-dspeed
Nov 08 2016 22:21
:D
defineMap defines Map
its like a init for map
so yes the result of defineMap is Map
Kevin Phillips
@phillipskevin
Nov 08 2016 22:21
can-define/map/map is how you import DefineMap
Nico R.
@nriesco
Nov 08 2016 22:21
ok
Kevin Phillips
@phillipskevin
Nov 08 2016 22:22
its can.DefineMap if you’re using the global script
Nico R.
@nriesco
Nov 08 2016 22:23
@phillipskevin what do you mean with global script?
Frank Lemanschik
@frank-dspeed
Nov 08 2016 22:23
he means a script that got exportet with all modules of canjs
Frank Lemanschik
@frank-dspeed
Nov 08 2016 22:23
via steal-tools
Kevin Phillips
@phillipskevin
Nov 08 2016 22:23
that’s what all of the JSBin examples use
Nico R.
@nriesco
Nov 08 2016 22:24
got it!
thanks a lot!
Kevin Phillips
@phillipskevin
Nov 08 2016 22:24
I just mentioned that because that’s what all the examples will use
since you mentioned you saw it in an example
Frank Lemanschik
@frank-dspeed
Nov 08 2016 22:24
@phillipskevin do you know why or if there is a minifyed release version?
i tryed with min and there was none
Kevin Phillips
@phillipskevin
Nov 08 2016 22:24
there is not
Frank Lemanschik
@frank-dspeed
Nov 08 2016 22:25
is there a reason for that?
that i missed?
Kevin Phillips
@phillipskevin
Nov 08 2016 22:25
since it’s not intended for production
Frank Lemanschik
@frank-dspeed
Nov 08 2016 22:25
ah ok
Kevin Phillips
@phillipskevin
Nov 08 2016 22:25
it has dev warnings and everything
Julian
@pYr0x
Nov 08 2016 22:43
@phillipskevin you did a great job in github and gitter, just saying. Thx men!
:+1:
Kevin Phillips
@phillipskevin
Nov 08 2016 22:43
thanks @pYr0x!
Julian
@pYr0x
Nov 08 2016 22:44
Good to have you on board
;)