Mattila: Have you console logged anything to make sure you getting in the each?
Noman: Mattila: I have not, thanks :p
Zentner: Yeah the rest of the script is full of console.log I just didn’t think of it here
Feigh: Mattila: apparently I’m not getting into the for
Mattila: So something’s up with your selector
Gruett: Also, use .map for this.
Kowalkowski: They’re closing the office building
Mattila: Maaan, now i’m curious
Caparoula: Hi. How do I find out the type of something? I’m trying to use if i use inArray, but it never matches, so I guess I compare different types.
Petramale: Generally you don’t want type though.
Roseboro: Robertmaxrees, seems like inArray is strict though
Brautigam: What are youa ctually trying to accomlish?
Beneze: Because it sounds like you want .indexOf
Bracks: Thats what I was about to ask
Reddig: Ah. maybe. I just need to know whether my string or number or something is present in in array
Hornick: Then .indexOf is what you want.
Bracks: Yea, typeof will just tell you if your variable is a string or bool or something. not if it exists in an array
Mattila: I figured he was just trying to debug that his p***ed in element was the right type
Kallmeyer: Also, typeof ****s because. http://jsfiddle.net/8pft5qzj/
Mattila: I discovered the isArray, isFunction, and isPlainObject a few days ago and was like oh ho ho!
Nava: Imo you shouldn’t need them 90% of the time though.
Mattila: Having trouble find the doc for some though
Padarebones: Hmmm. keep getting a -1. even with indexOf
Coco: Anotheryou make a fiddle.
Engelmeyer: Robertmaxrees, I’ll try :. need to rebuild what ajax does before
Schindler: You’re looking in an array for something.
Ocheltree: Why are you reconstructing anything ajax related?
Pankau: Here: I expect “2”, i get “-1”. seems to have something to do with the building of my array
Mattila: Uh, is it an issue of string vs number?
Buchan: Yes : that’s what I guessed
Devoogd: Thats why I asked to find out the type
Lueker: Or convert the ID to a number.
Buonassisi: One or the other, depending.
Kush: Works like a charm. thx. string is better, might use letters in the IDs later
Love: Don’t use + for implicit type conversion.
Depaz: Mattila use p****Int / p****Float for that instea.d
Mattila: Awww, i love me some +
Hardan: It’s confusing and implicit. be explicit. if you want a number, use one of the functions made for doing it.
Goodmanson: Trail mix only gets you so far
Grothen: Yeaaaah, taco salad. neither a taco, nor salad, but whatever
Sharley: Http://codepen.io/anon/pen/JYYbwp what am i doing wrong here? i’m trying to fix the css in order for the site to be responsive
Granucci: Hello everyone, i want to make scroll even to know when im at the bottom of my do***ent, my problem comes with resources, listening to scroll event takes alot , i want to know if there is a LESS resouces consuming way
Sturgis: Im making cordova app so its important
Sugabo: Sorry, wasn’t here for the first part of that.
Frankenberg: Hello everyone, i want to make scroll even to know when im at the bottom of my do***ent, my problem comes with resources, listening to scroll event takes alot , i want to know if there is a LESS resouces consuming way