Well, if b is an object,.

 
Cloyd: Bagi: isn’t that what I said?

Bagi: Hameen: but he was asking what the purpose was, and you didn’t say it was pointless

Bagi: It looked like you were saying there was a point to it

Bergsjo: Bagi, It isn’t pointless. The short is that someone gave you an object and you don’t know if they defined their own hasOwnProperty or are missing that entirely. So you .call it on the object to guarantee you get the right function call.

Gere: Bagi: it’s not pointless. The context here is “I want to check if some object has an own property Y”. The only way of doing that is using Object.prototype.hasOwnProperty.callo, k, granted Object.prototype.hasOwnProperty hasn’t been changed so we ***ume the default ES environment.

Bagi: What might cause them to be missing hasOwnProperty?

Fassnacht: Cone: http://plnkr.co/edit/A7UrbGvwfgrWFj9pf780?p=preview

Kesinger: Var o = Object.createnull; o.hasOwnProperty’bla’;

Gerrero: Riobe: TypeError: o.hasOwnProperty is not a function

Schlee: You can use YAML in Python too. I think the name of the module is pyaml.

Stower: It’s what I use for do***entation: https://github.com/folktale/folktale/blob/master/docs/source/api.yaml

Subler: Neonakis: I was actually considering YAML, but I already know the rules more or less of json. Maybe I should just learn it. Is that pipe the character for multiline strings?

Niethamer: Subler: for multiline text with folded whitespace so newlines get transformed into horizontal space. And for multiline text with preserved whitespace.

Subler: Neonakis: alright, thanks.

Subler: Time to read about some YAML, I guess.

Jore: Is it possible to set a key in a object as a string by calling a variable?

Loop: Like var type = ‘user’; object = {type:’jim’};

Spielman: But you can do: var type = ‘user’; var object = {}; objecttype = ‘jim’;

Clelland: Oh i didnt think of that LOL. i was trying to think inside the = { . } theres no way to intiialize and and declare at the same time?

Leeming: Rcyr ok I have another question, so inside of a parameter I’m p***ing a object, like find{user : ‘jim’} how can i p*** it like findobject and set it before?

Rian: Would it be object = {user:’jim’} then findobject ?

Spielman: Var type = ‘user’; var object = {}; objecttype = ‘jim’; findobject

Gaarsland: Oh yes thats it. thanks a bunch

Schlichenmaye: In chrome do***ent.do***entElement.scrollTop is always 0, in firefox do***ent.body.scrollTop is always 0

Schlichenmaye: Apart from user agent sniffing, what’s the best way to determine which one to use?

Beissel: I want to create an object x such that x.a and x.b or x.anything always returns the same function

Spielman: Return the same function?

Imbach: I don’t think that’s possible. You are thinking something like PHP magic methods

Fritzpatrick: Future-JS will support that via proxies

Fritzpatrick: But it’s a very unusual thing to want

Scheibner: Ah well, that’s something i haven’t read about 😛

Fritzpatrick: You can skip it, it’s rather esoteric and babel can’t really support it easily :

Beissel: I want it for unit testing

Beissel: I’m mocking the jquery $ symbol

Beissel: Var a = ; var b = “”; a.pushb; b = “bar”; // shouldn’t a be “bar” ?

Ferone: Beissel: it reads the value of b at the time a.push is run

Ferone: Beissel: so, you’re pushing in “”

Ferone: The value of it is put into the array, yes

Beissel: If b is a really big object, this will be a slow operation?

Ferone: It doesn’t get referenced

Beissel: Ahh, can I create a reference?

Mobley: You are pushing a value not a reference

Ferone: Well, if b is an object, you’ll get a refernce to the same object