Changeset 1492

Show
Ignore:
Timestamp:
11/14/07 17:48:16 (6 years ago)
Author:
amachang
Message:

websites/coderepos.org/trac/share/js/TracUtils.js: 複数要素あるときの問題

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/coderepos.org/trac/share/js/TracUtils.js

    r1490 r1492  
    5252                var a = document.createElement('a'); 
    5353                a.innerHTML = "Click to execute." 
    54                 addEvent(a, 'click', function() { 
     54        (function(js) { 
     55                    addEvent(a, 'click', function() { 
    5556                                eval(js); 
    56                 }, false); 
     57                    }, false); 
     58        })(js); 
    5759                var s = a.style; 
    5860                s.fontWeight = 'bold';