Commit 2326dbe3 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Apply jshint rules to the javascript source.

parent dc08727d
......@@ -40,6 +40,8 @@ Ext.define('MyApp.form.field.UserData', {
textUpdateTitle: 'Modify the property name',
textValue: 'value',
// jshint strict: false
// private method requests by the component model of ExtJS
initComponent: function () {
......@@ -143,6 +145,8 @@ Ext.define('MyApp.form.field.UserData', {
me.callParent(arguments);
},
// jshint strict: true
/**
* Return the field value as an object with the following structure:
*
......@@ -226,10 +230,9 @@ Ext.define('MyApp.form.field.UserData', {
* @param {HTMLElement} tr
* @param {Number} rowIndex
* @param {Ext.EventObject} event
* @param {Object} eOpts
*
*/
onCellContextMenu: function (table, td, cellIndex, record, tr, rowIndex, event, eOpts) {
onCellContextMenu: function (table, td, cellIndex, record, tr, rowIndex, event) {
"use strict";
var me = this;
......@@ -271,10 +274,9 @@ Ext.define('MyApp.form.field.UserData', {
* @param {Ext.grid.header.Container} headerContainer
* @param {Ext.grid.column.Column} column
* @param {Ext.EventObject} event
* @param {HTMLElement} html
* @param {Object} eOpts
*
*/
onHeaderContextMenu: function (headerContainer, column, event, html, eOpts) {
onHeaderContextMenu: function (headerContainer, column, event) {
"use strict";
......
......@@ -143,9 +143,9 @@ Ext.define('MyApp.form.field.UserDataMultiDefault', {
//
// @param {Ext.form.field.ComboBox} combo
// @param {Ext.data.Model[]} records
// @param {Object} eOpts
//
onComboBoxSelect: function (combo, records, eOpts) {
//
onComboBoxSelect: function (combo, records) {
"use strict";
var me = this,
......
......@@ -104,9 +104,8 @@ Ext.define('MyApp.form.plugin.UserDataConsistency', {
// Inform the user and clean the mask on the viewport
//
// @param {Object} response
// @param {Object} options
//
onAjaxFailure: function (response, options) {
onAjaxFailure: function (response) {
"use strict";
var me = this;
......@@ -120,9 +119,8 @@ Ext.define('MyApp.form.plugin.UserDataConsistency', {
// Clean the mask on the viewport
//
// @param {Object} response
// @param {Object} options
//
onAjaxSuccess: function (response, options) {
onAjaxSuccess: function (response) {
"use strict";
var me = this,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment