Changeset 9147

Show
Ignore:
Timestamp:
07/05/08 03:52:15 (3 months ago)
Author:
hannes
Message:

Fix demo app: modules no longer act as JSAdapters

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • helma-ng/trunk/demo/webmodule.js

    r8990 r9147  
    55    var context = { 
    66        title: 'Module Demo', 
    7         href: href 
     7        href: req.path 
    88    }; 
    99    render('skins/modules.html', context); 
    1010} 
    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 }