mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 10:14:13 +00:00
feature(package) jscs v3.0.1
This commit is contained in:
parent
ae41963c87
commit
8c09521bb4
6 changed files with 5 additions and 12 deletions
1
.jscsrc
1
.jscsrc
|
|
@ -4,6 +4,7 @@
|
|||
"requireCapitalizedConstructors": false,
|
||||
"disallowTrailingWhitespace": "ignoreEmptyLines",
|
||||
"disallowTrailingComma": false,
|
||||
"disallowUnusedVariables": true,
|
||||
"validateIndentation": false,
|
||||
"requireCurlyBraces": false,
|
||||
"requireSpacesInAnonymousFunctionExpression": {
|
||||
|
|
|
|||
|
|
@ -796,7 +796,7 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
* unified way to set current file
|
||||
*/
|
||||
this.setCurrentFile = function(currentFile, options) {
|
||||
var ret, path, pathWas, title,
|
||||
var path, pathWas, title,
|
||||
o = options,
|
||||
FS = CloudFunc.FS,
|
||||
CENTER = true,
|
||||
|
|
@ -831,8 +831,6 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
/* scrolling to current file */
|
||||
this.scrollIntoViewIfNeeded(currentFile, CENTER);
|
||||
|
||||
ret = true;
|
||||
|
||||
Cmd.updateCurrentInfo();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@
|
|||
emitter.emit('end');
|
||||
} else {
|
||||
error = Error(xhr.responseText);
|
||||
emitter.emit('error');
|
||||
emitter.emit('error', error);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@
|
|||
* @currentFile
|
||||
*/
|
||||
function promptDelete() {
|
||||
var ret, type, isDir, msg,
|
||||
var type, isDir, msg,
|
||||
name = '',
|
||||
msgAsk = 'Do you really want to delete the ',
|
||||
msgSel = 'selected ',
|
||||
|
|
@ -278,8 +278,6 @@
|
|||
Dialog.confirm(TITLE, msg, {cancel: false}).then(function() {
|
||||
deleteSilent(files);
|
||||
});
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -61,14 +61,10 @@ var Util, DOM, jQuery;
|
|||
|
||||
if (!document.removeEventListener) {
|
||||
DOM.Events.remove = function(pType, pElement, pListener) {
|
||||
var lRet;
|
||||
|
||||
if (!pElement)
|
||||
pElement = window;
|
||||
|
||||
$(pElement).unbind(pType, pListener);
|
||||
|
||||
return lRet;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"coveralls": "^2.11.6",
|
||||
"jscs": "^2.7.0",
|
||||
"jscs": "^3.0.1",
|
||||
"jshint": "^2.8.0",
|
||||
"minor": "^1.2.2",
|
||||
"morgan": "^1.6.1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue