Index: trunk/extensions/VisualEditor/modules/es/tools/es.AnnotationButtonTool.js |
— | — | @@ -8,12 +8,12 @@ |
9 | 9 | * @param {String} name |
10 | 10 | * @param {Object} annotation |
11 | 11 | */ |
12 | | -es.AnnotationButtonTool = function( toolbar, name, annotation ) { |
| 12 | +es.AnnotationButtonTool = function( toolbar, name, data ) { |
13 | 13 | // Inheritance |
14 | 14 | es.ButtonTool.call( this, toolbar, name ); |
15 | 15 | |
16 | 16 | // Properties |
17 | | - this.annotation = annotation; |
| 17 | + this.annotation = data; |
18 | 18 | }; |
19 | 19 | |
20 | 20 | /* Methods */ |
— | — | @@ -51,19 +51,19 @@ |
52 | 52 | es.Tool.tools.bold = { |
53 | 53 | constructor: es.AnnotationButtonTool, |
54 | 54 | name: 'bold', |
55 | | - annotation: { 'type': 'textStyle/bold' } |
| 55 | + data: { 'type': 'textStyle/bold' } |
56 | 56 | }; |
57 | 57 | |
58 | 58 | es.Tool.tools.italic = { |
59 | 59 | constructor: es.AnnotationButtonTool, |
60 | 60 | name: 'italic', |
61 | | - annotation: { 'type': 'textStyle/italic' } |
| 61 | + data: { 'type': 'textStyle/italic' } |
62 | 62 | }; |
63 | 63 | |
64 | 64 | es.Tool.tools.link = { |
65 | 65 | constructor: es.AnnotationButtonTool, |
66 | 66 | name: 'link', |
67 | | - annotation: { 'type': 'link/internal', 'data': { 'title': '' } } |
| 67 | + data: { 'type': 'link/internal', 'data': { 'title': '' } } |
68 | 68 | }; |
69 | 69 | |
70 | 70 | /* Inheritance */ |