Zoldak: Aha! my next goal is drawing a Malibu palm tree with this function 😀
Kalkman: Now write me a function that transforms a recursive data structure into an mptt tree RonRichie
Fundenberger: How do I figure out the height of the status bar? I’m talking about the little thingie that pops up in the bottom-left in Firefox and IE when hovering over hyperlinks and displays the URL where it leads to.
Strout: Kalkman hah! that’s too tough buddy lol : Ive already this damn homework that I need to recurisively re-implement getElementByCl***Name function, as well as JSONstringify and JSONprase which as of now I’ve no clue about where to even start from, but first I need to do getElementByCl***Name one
Teasley: Are expressions hoisted in JS ?
Casarrubias: Var and function a {}
Farese: Declarations are hoisted
Younghans: Aha thanks GreenJello and yansanmo :
Chang: I can’t seem to understand this, Ive seen this function Array.prototype.slice.applyarguments but arguments is not an array and thus should not have slice function available for it, but how come that this function works?
Mondoza: RonRichie, check out how apply works
Broman: Yansanmo checked out lot of times, still struggling to get a grasp on it, I somewhat know what it does but it quickly escalates and gets complicated : do you have any recommended source that explains apply, call and bind in a human-friendly language? lol
Nincehelsor: Nope, on alien-friendly language
Ruppert: Internally, slice use this.length and this0 to thisthis.length-1, when you use apply/call, you change the this. if your object has length and 0 to this.length-1 properties, it will work
Rempel: RonRichie: arguments is. strange
Abreu: But kinda looks like one
Stargel: Yansanmo yeah that sure makes sense, but its still confusing :-/
Tuia: Eventually it will die and no one will have to bother with it
Marion: Function mySlice {var r = ; forvar i = 0; i this.length; i++ { r.pushthisi; } return r; } mySlice.apply{length: 2, 0: ‘a’, 1: ‘b’}
Mate: Yansanmo: object ‘a’, ‘b’
Kown: Torkable aha, it looks like an array but doesn’t have array methods available to it :-/
Rosman: RonRichie, here is mySlice function, it takes this.length, this0 to this. and returns an array. when I call it, I send an object as “this”.
Zumalt: If I don’t use “this”, I could send an argument
Laboy: Function mySliceo {var r = ; forvar i = 0; i o.length; i++ { r.pushoi; } return r; } mySlice{length: 2, 0: ‘a’, 1: ‘b’}
Mate: Yansanmo: object ‘a’, ‘b’
Kolts: Apply and call first argument only change the value of “this” inside the function
Rebera: Ahh, it makes a little more sense actually lol, let me copy your example and thoroughly explore it
Myerscough: I no samd mon, just saying what’s up it seens quiet in here heh
Robenson: Should have said, hey guys
Myerscough: I mean, I’m still in hospital so I have a reason to be but
Myerscough: I’m god, how bot yakll?
Myerscough: Stilllllll working on gfx for a sticker from The Sticker Guy lol
Crunkilton: How would you do a ternary if a cl*** is present, do something, otherwise do something else? How do you check for the cl***?
Borunda: Var gifAnimation = $’.ie9′ ? 3000 : 0;
Mcpadden: If the cl*** .ie9 is present, gifAnimation is 3000 and 0 if it’s not
Lamoine: Is that proper syntax?
Langholdt: Oh that’s proper ternary syntax
Lifton: I have no idea if it will work though lol
Crumm: I havn’t touched jquery in a loooooooong time
Jiau: Or anytnig front end for that matter
Handcock: That’s okay, just looking for confirmation
Lesko: How do I figure out the height of the status bar? I’m talking about the little thingie that pops up in the bottom-left in Firefox and IE when hovering over hyperlinks and displays the URL where it leads to.