Use dot notation for array access - JSLint recommendation

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2017-05-01 00:45:41 -03:00
parent 4518f6dc64
commit 80a5e0a735
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
6 changed files with 9 additions and 9 deletions

View File

@ -725,7 +725,7 @@
}; };
if (!allowOverwrite) { if (!allowOverwrite) {
headers['Overwrite'] = 'F'; headers.Overwrite = 'F';
} }
this._client.request( this._client.request(

View File

@ -32,7 +32,7 @@
headers = headers || {}; headers = headers || {};
if (this.userName) { if (this.userName) {
headers['Authorization'] = 'Basic ' + btoa(this.userName + ':' + this.password); headers.Authorization = 'Basic ' + btoa(this.userName + ':' + this.password);
// xhr.open(method, this.resolveUrl(url), true, this.userName, this.password); // xhr.open(method, this.resolveUrl(url), true, this.userName, this.password);
} }
xhr.open(method, this.resolveUrl(url), true); xhr.open(method, this.resolveUrl(url), true);

View File

@ -2366,10 +2366,10 @@ jQuery.fn.tipsy = function(argument) {
options.trigger = argument.trigger; options.trigger = argument.trigger;
} }
if(argument.delayIn) { if(argument.delayIn) {
options.delay["show"] = argument.delayIn; options.delay.show = argument.delayIn;
} }
if(argument.delayOut) { if(argument.delayOut) {
options.delay["hide"] = argument.delayOut; options.delay.hide = argument.delayOut;
} }
if(argument.html) { if(argument.html) {
options.html = true; options.html = true;

View File

@ -22,8 +22,8 @@ OC.Lostpassword = {
if (!$('#user').val().length){ if (!$('#user').val().length){
$('#submit').trigger('click'); $('#submit').trigger('click');
} else { } else {
if (OC.config['lost_password_link']) { if (OC.config.lost_password_link) {
window.location = OC.config['lost_password_link']; window.location = OC.config.lost_password_link;
} else { } else {
$.post( $.post(
OC.generateUrl('/lostpassword/email'), OC.generateUrl('/lostpassword/email'),

View File

@ -79,7 +79,7 @@ OCP.AppConfig = {
*/ */
getValue: function(app, key, defaultValue, options) { getValue: function(app, key, defaultValue, options) {
options = options || {}; options = options || {};
options['data'] = { options.data = {
defaultValue: defaultValue defaultValue: defaultValue
}; };
@ -97,7 +97,7 @@ OCP.AppConfig = {
*/ */
setValue: function(app, key, value, options) { setValue: function(app, key, value, options) {
options = options || {}; options = options || {};
options['data'] = { options.data = {
value: value value: value
}; };

View File

@ -192,7 +192,7 @@ OC.Share = _.extend(OC.Share || {}, {
} }
if (shares) { if (shares) {
OC.Share.statuses[itemSource] = OC.Share.statuses[itemSource] || {}; OC.Share.statuses[itemSource] = OC.Share.statuses[itemSource] || {};
OC.Share.statuses[itemSource]['link'] = link; OC.Share.statuses[itemSource].link = link;
} else { } else {
delete OC.Share.statuses[itemSource]; delete OC.Share.statuses[itemSource];
} }