/tags/jsdoc_toolkit-1.4.0/test/data/anonfuncs.js

http://jsdoc-toolkit.googlecode.com/ · JavaScript · 17 lines · 9 code · 3 blank · 5 comment · 0 complexity · a2bb963a2394d2dda507ccab459bb320 MD5 · raw file

  1. // looks like a function
  2. var Item = function(pid) {
  3. /** The item name */
  4. this.name = function(n) {
  5. }(pid);
  6. };
  7. /** The price */
  8. Item.Price = function(n) {
  9. }(1.99);
  10. /** The product */
  11. Product = new function(pid) {
  12. /** The seller */
  13. this.seller = "Acme";
  14. }