Timeline for Object javascript
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 12, 2013 at 0:57 | comment | added | Andrew Senner |
and simpler even more you could use an anonymous function via the function operator: var tool = new function() { this.test = function(param) { console.log(param); } }; P.S. @ryanbrill I was trying to really get some feedback about my answer, I hope I didn't come off as being rude. :) Your answer was helpful and I upvoted it.
|
|
| Apr 12, 2013 at 0:52 | comment | added | ryanbrill | @Drewdiddy611 You're answer was great – I just choose to abstract away the actual functionality of the code and explain it from a pure JavaScript OOP perspective. After reading your answer, I thought mine still added to the conversation to I decided to post anyway, in case someone finds it useful down the line at some point. | |
| Apr 12, 2013 at 0:47 | comment | added | Andrew Senner | Not sure how my answer wasn't full? :) | |
| Apr 12, 2013 at 0:43 | history | answered | ryanbrill | CC BY-SA 3.0 |