mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 17:35:34 +00:00
refactor(dom) getCurrentLink: rm -1
This commit is contained in:
parent
78a1c10421
commit
78cbf94668
1 changed files with 2 additions and 4 deletions
|
|
@ -1180,11 +1180,9 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
*/
|
||||
this.getCurrentLink = function(currentFile) {
|
||||
var current = currentFile || this.getCurrentFile(),
|
||||
link = this.getByTag( 'a', current),
|
||||
|
||||
ret = link.length > 0 ? link[0] : -1;
|
||||
link = this.getByTag( 'a', current);
|
||||
|
||||
return ret;
|
||||
return link[0];
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue