pull/1/head
yann300 7 years ago
parent 4383b4a24c
commit 1204776ae7
  1. 4
      src/app/editor/contextualListener.js

@ -63,8 +63,8 @@ class ContextualListener {
} }
_highlight (node, compilationResult) { _highlight (node, compilationResult) {
var src = node.src if (!node) return
var position = this.sourceMappingDecoder.decode(src) var position = this.sourceMappingDecoder.decode(node.src)
var eventId = this._api.highlight(position, node) var eventId = this._api.highlight(position, node)
if (eventId) { if (eventId) {
this._activeHighlights.push({ eventId, position, fileTarget: compilationResult.source.target }) this._activeHighlights.push({ eventId, position, fileTarget: compilationResult.source.target })

Loading…
Cancel
Save