Index: trunk/extensions/VisualEditor/modules/es/bases/es.DocumentModelNode.js |
— | — | @@ -197,7 +197,12 @@ |
198 | 198 | * @returns {String} Symbolic name of element type |
199 | 199 | */ |
200 | 200 | es.DocumentModelNode.prototype.getElementType = function() { |
201 | | - return this.element.type; |
| 201 | + //return this.element.type; |
| 202 | + // We can't use this.element.type because this.element may be null |
| 203 | + // So this function now returns this.type and should really be called |
| 204 | + // getType() |
| 205 | + // TODO: Do we care? |
| 206 | + return this.type; |
202 | 207 | }; |
203 | 208 | |
204 | 209 | /** |