File tree Expand file tree Collapse file tree 3 files changed +2
-164
lines changed Expand file tree Collapse file tree 3 files changed +2
-164
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 10
10
* @author H. Snater < mediawiki@snater.com >
11
11
*
12
12
* @constructor
13
- *
14
- * @param {Object } options
15
13
*/
16
- var SELF = vf . ValueFormatter = function VpValueFormatter ( options ) {
17
- this . _options = $ . extend ( { } , options || { } ) ;
18
- } ;
14
+ var SELF = vf . ValueFormatter = function VpValueFormatter ( ) { } ;
19
15
20
16
$ . extend ( SELF . prototype , {
21
- /**
22
- * Formatter options.
23
- * @property {Object }
24
- * @private
25
- */
26
- _options : null ,
27
-
28
- /**
29
- * Returns the formatter's options as set in the constructor.
30
- *
31
- * @return {Object }
32
- */
33
- getOptions : function ( ) {
34
- return $ . extend ( { } , this . _options ) ;
35
- } ,
36
17
37
18
/**
38
19
* Formats a value. Will return a jQuery.Promise which will be resolved if formatting is
39
20
* successful or rejected if it fails. There are various reasons why formatting could fail, e.g.
40
- * the formatter is using the API and the API cannot be reached. In case of success, the
21
+ * the formatter is using a API and the API cannot be reached. In case of success, the
41
22
* callbacks will be passed a dataValues.DataValue object. In case of failure, the callback's
42
23
* parameter will be an error object of some sort (not implemented yet!).
43
24
* @abstract
44
25
*
45
26
* @param {dataValues.DataValue } dataValue
46
- * @param {string } [dataTypeId]
47
- * @param {string } [outputType] The output's preferred MIME type
48
27
* @return {Object } jQuery.Promise
49
28
* @return {Function } return.done
50
29
* @return {string|null } return.done.formatted Formatted DataValue.
Original file line number Diff line number Diff line change 32
32
),
33
33
),
34
34
35
- 'valueFormatters.ValueFormatterStore ' => $ moduleTemplate + array (
36
- 'scripts ' => array (
37
- 'ValueFormatterStore.js ' ,
38
- ),
39
- 'dependencies ' => array (
40
- 'valueFormatters ' ,
41
- ),
42
- ),
43
-
44
35
'valueFormatters.formatters ' => $ moduleTemplate + array (
45
36
'scripts ' => array (
46
37
'formatters/NullFormatter.js ' ,
You can’t perform that action at this time.
0 commit comments