Changeset 13522


Ignore:
Timestamp:
Sep 23, 2012, 5:21:19 PM (9 years ago)
Author:
jordan
Message:

in file-row getPath(), don't leak 'path' into the global namespace

Location:
trunk/web/javascript
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/file-row.js

    r13437 r13522  
    175175        this.getPath = function () {
    176176                var file = torrent.getFile(i);
    177         path = file.name.replace(/\/\/+/g,'/')
    178                 path = path.split('/').slice(0,-1)
    179                 path.push('t' + fields.torrent.getId() + 'f' + fields.index)
    180                 return path
     177                var path = file.name.replace(/\/\/+/g,'/');
     178                path = path.split('/').slice(0,-1);
     179                path.push('t' + fields.torrent.getId() + 'f' + fields.index);
     180                return path;
    181181        };
    182182
  • trunk/web/javascript/inspector.js

    r13521 r13522  
    514514        data.file_rows = [];
    515515        fragment = document.createDocumentFragment();
    516                 heirarchy = {'/':[]}
     516        heirarchy = {'/':[]}
    517517       
    518518        for (i=0; i<n; ++i) {
     
    538538            }
    539539        }
     540        console.log(heirarchy);
    540541        /*
    541542        At this point we have a single object containing the whole
Note: See TracChangeset for help on using the changeset viewer.