These are chat archives for canjs/canjs

19th
Apr 2016
Thomas Sieverding
@Bajix
Apr 19 2016 02:12
Legit
Thomas Sieverding
@Bajix
Apr 19 2016 02:17
How do you setup view bindings for uppercase properties?
I had expected using a dash prefix, as it’s kebab->camel, however that’s an invalid property name
Thomas Sieverding
@Bajix
Apr 19 2016 02:52
Seems dash prefix works after all, so long as you’re using the newer bindings, so nvm
Julian
@pYr0x
Apr 19 2016 07:15
@Bajix good to know ;)
Mohamed Cherif Bouchelaghem
@cherifGsoul
Apr 19 2016 13:57
@BigAB use AMD version as suggested by Justin in the comment
Justin Meyer
@justinbmeyer
Apr 19 2016 14:59
@abalmush it wont effect CanJS. We don't use it
Andrei Balmus
@abalmush
Apr 19 2016 15:04
thank you @justinbmeyer! thats great!
Thomas Sieverding
@Bajix
Apr 19 2016 17:30
This message was deleted
Julian
@pYr0x
Apr 19 2016 21:56
how can i add a instance to a list with can.connect
Wwa.getList({tour: 5}).then(function(reponse){
     var bar = new Wwa({name: "test"});
        WwaConnection.save(bar).then(function(todo){
            console.log(todo);
        });
});
but bar is not in the list set of tour=5
Mohamed Cherif Bouchelaghem
@cherifGsoul
Apr 19 2016 22:19
@pYr0x with supermap list is an instance of can.List
Julian
@pYr0x
Apr 19 2016 22:19
sorry dont understand
how can i append a instance to the list
Julian
@pYr0x
Apr 19 2016 22:36
in this example
the instance of a new Todo is updated in the template
but this example with a set is not
how can i set the new Todo into the set of fail
Mohamed Cherif Bouchelaghem
@cherifGsoul
Apr 19 2016 22:41
WwaConnection.save(bar).then(function(todo){
            response.push(todo);
        });
Julian
@pYr0x
Apr 19 2016 22:42
what is response?
the list
ok
but with that, the new todo is also not in the set of fail
i only push the todo to the list
if i mean "not in the set of fail" i am talking about the local storage
Mohamed Cherif Bouchelaghem
@cherifGsoul
Apr 19 2016 22:43
is the argument type of can.List in your example
Julian
@pYr0x
Apr 19 2016 22:43
blob
is there a way to say
var t = new Todo({name: "Bar"});
t.isInSet({'fail'});