-
Notifications
You must be signed in to change notification settings - Fork 12
/
IssueDetails.js
42 lines (38 loc) · 1.04 KB
/
IssueDetails.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* @license Copyright (c) 2014-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/license
*/
define( function() {
'use strict';
/**
* IssueDetails instance contains more detailed information about the Issue,
* like a title, description.
*
* @since 4.6.0
* @class CKEDITOR.plugins.a11ychecker.IssueDetails
* @constructor
* @member CKEDITOR.plugins.a11ychecker
* @param {Object} title Title localization object. Eg.
*
* {
* en: 'foo',
* 'fr': 'bar'
* }
*
* @param {Object} descr Description localization object.
* @param {String[]} path
* @param {Object} data Custom engine-provided data.
*/
function IssueDetails( title, descr, path, data ) {
this.title = title;
this.descr = descr;
/**
* @todo: document path property. Most likely it will require to create a custom type.
*/
this.path = path || [];
this.data = data;
}
IssueDetails.prototype = {};
IssueDetails.prototype.constructor = IssueDetails;
return IssueDetails;
} );