node.js question: if In foo.js I have var foo = { func: funcRef }; exports.foo = foo; and in a file called bar.js I require foo and foo.func(), where does the funcRef function have to reside? foo.js or bar.js?
the tag in question is here: 'javascipt' http://stackoverflow.com/tags/javascipt/info
Just by reading the about:
This is tag created out of people misspelling JavaScript.
I do not believe this is an acceptable tag for the main site seeing how it is for a typo.
Someone needs to write a userscript that we can distribute with releases of all major CMS platforms that automatically shuts down the browser when it detects that a client is entering inline styles into a content field.
@Selva Welcome to the JavaScript chat! Please review the room pseudo-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.
@monners Dork Someone who has odd interests, and is often silly at times. A dork is also someone who can be themselves and not care what anyone thinks.
@CadeWard Welcome to the JavaScript chat! Please review the room pseudo-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.
I went to dreamland and read half the answer that started out reasonably, then asked the OP to post his sql username and password in the question so that the community could help further.
fooscript.com/zombie when the battle ends, are the buttons being "disabled" properly? They're clickable divs so I can't just disable them. I replaceChild'ed a cloneNode and that apparently strips event listeners. Is there a better way to do that?
disableActions : function() {
this.run = document.getElementById("run");
this.attack = document.getElementById("attack");
//cloneNode to remove event listeners to prevent spam attacks on battle end
var attack = this.attack.cloneNode(true);
var run = this.run.cloneNode(true);
this.modal.replaceChild(attack,this.attack);
this.modal.replaceChild(run,this.run);
},