Commit ea0b7f15 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Prueba sintaxis nueva de js y amplía soporte hint

parent 17fb87e3
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ define([

			this._prepareDashboardConfig();

			var tokenDfd = this._getGuestToken();
			let tokenDfd = this._getGuestToken();
			tokenDfd.then(lang.hitch(this, this._prepareDashboardInstance));
		},

@@ -146,15 +146,14 @@ define([
			this._prepareDashboard();
		},

		_subClear: function(req) {
		_subClear: function(_req) {

			this._clearDashboard();
		},

		_itemAvailable: function(res) {

			var data = res && res.data || {},
				token = data.token;
			let token = res?.data?.token;

			if (token) {
				this._guestToken.resolve(token);
+1 −3
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ module.exports = function(grunt) {
	grunt.config('jshint', {
		src: {
			options: {
				esversion: 6
			},
			files: {
				src: [
@@ -19,7 +18,6 @@ module.exports = function(grunt) {
		},
		test: {
			options: {
				esversion: 6,
				ignores: [testPath + '/sockTest/*.js']
			},
			files: {
@@ -29,7 +27,7 @@ module.exports = function(grunt) {
		options: {
			laxcomma: true,
			expr: true,
			esversion: 3
			esversion: 11
		}
	});
};