source:
branches/testa/js/bookmark.js
@
23
| Last change on this file since 23 was 23, checked in by anonymous, 6 years ago | |
|---|---|
| File size: 314 bytes | |
| Rev | Line | |
|---|---|---|
| [23] | 1 | class Bookmark { |
| 2 | constructor( path , max_display_name_length, display_name = null ){ | |
| 3 | this.path = path | |
| 4 | if( display_name == null ){ | |
| 5 | this.display_name = path.substr(0, max_display_name_length) | |
| 6 | } | |
| 7 | else{ | |
| 8 | this.display_name = display_name | |
| 9 | } | |
| 10 | } | |
| 11 | ||
| 12 | display_name() { | |
| 13 | return this.display_name | |
| 14 | } | |
| 15 | } |
Note: See TracBrowser
for help on using the repository browser.
![(trac.ini の [header_logo] セクションを設定してください)](/python/trac/Flist/chrome/common/trac_logo_mini.png)