Remove extra event emission. add debug print.

This commit is contained in:
Shane Kilkelly 2016-01-26 16:49:54 +00:00
parent 6866d45c3c
commit a043f28d9b

View file

@ -9,7 +9,6 @@ define [
if doc.doc_id
entity = @ide.fileTreeManager.findEntityById doc.doc_id
if entity?.name?.match /.*\.bib$/
@$scope.$emit 'references:changed', entity
@indexReferences([doc.doc_id], true)
@$scope.$on 'project:joined', (e) =>
@ -18,6 +17,7 @@ define [
setTimeout(
(self) ->
self.ide.socket.on 'references:keys:updated', (keys) ->
console.log '>> got keys from socket'
self._storeReferencesKeys(keys)
, 100
, this