Changeset 9147
- Timestamp:
- 07/05/08 03:52:15 (3 months ago)
- Files:
-
- helma-ng/trunk/demo/webmodule.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
helma-ng/trunk/demo/webmodule.js
r8990 r9147 5 5 var context = { 6 6 title: 'Module Demo', 7 href: href7 href: req.path 8 8 }; 9 9 render('skins/modules.html', context); 10 10 } 11 12 // module scopes automatically support JSAdapter syntax!13 function __get__(name) {14 if (name == 'href') {15 return req.path;16 } else {17 return this[name];18 }19 }