@Victor ...addEventListener('click', (function(a, b) { return(event) { ... a and b captured ..})(aValue, bValue))) <-- lets you get at aValue and bValue in the callback
The think is a little bit more complicated I guess. I am trying to write something on top of window.matchMedia API. I have 4 media queries my website answers to. They are named so I would like to do something like matchMedia( MQ.wide ).addEventListener( changedMedia ) and that function should get the name of the media query as I named it. Or even not have to call window.matchMedia at all. I could write something to check for each media query, but I wanted something more clever
PSA: interested in comics and cartoons of all kinds? From superheroes to Gaston Lagaffe, from Garfield to Maus, from Tintin to xkcd? Follow and support the new Comics Proposal over on Area 51!
anyone here free? can help me check why i didn't get chatroom id?
pastebin.com/JSScpQB3 < let user to select chatrooms pastebin.com/iVGJRyXm < a chatroom gui page pastebin.com/U4J1pd89 < insert message call by ajax pastebin.com/kQJ07eXq < load message call by ajax pastebin.com/gF3PdE9p < ajax with poll
my question is how i get the chatroom id? now i was unable to get chatroom id when i insert into database the chatroom_id is 0 Anyone can help me? i have a hard time to do this i have no idea to get the id
@nonstop328 Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
> For an import, Chakra resolves the import name and create a link back to the export it refers to. The fact that Chakra is aware of the exact physical storage location for imports and exports allows it to store the location in bytecode and skip dynamically looking up the export name in execution. Chakra can bypass much of the normal property lookup and cache mechanisms and instead directly fetch the stored location to access imports or exports. The end result is that working with an imported object is faster than looking up properties in ordinary objects.
good lord... they add that "Read more at" to copied text...
anyone from the philippines here? Dealing with someone from there trying to talk in english
A: I want to learn web design B: Cool! What do you know about it already A: Databases B: Are you sure you don't want to learn web development instead A: I want to know C++ and Java
@littlepootis funny, I played the game when I was 5 (well saw not play, I found finding sheeps boring compared to Dangerous Dave and Aladin and Ofcourse Prince of Persia)
@littlepootis there is more than that, you can buy more than 1 ship assign officers to yourself and other captains, do trade IIRC New horizons allows you to annex a city too
It's really like a shortcut to making a micro instance with a bunch of common tools (git, docker, etc) and the google cloud commandline tools to mananger other instances from
(typeof obj !== 'undefined' && key in obj) Is there any alternative way to check if an object exists and if it does then check if it has keys instead of the above one?
Right. I'm thinking of a scenario where it might not be a good idea to define a variable..maybe checking on global variables (which is bad but it creeps on code at times).
I get that but let's say I'm just writing a piece of function on an already established code base and I need to check whether that variable exists or not in my tiny function...if that makes any sense.
@shriek Don't add to the bad code though. Do something along the lines of writing a function that does the right thing, and then wrap the call to that function in appropriate checks and comment them. Don't pollute your function with their rubbish.
webpack is more like you get webpack and everything comes built in (kitchen sink approach), browserify is more of a you BYOB(build your own build) kinda thing.