use webcontents id to identify callbacks

This commit is contained in:
Robo 2015-10-30 08:34:40 +05:30
parent 3a154ab8ea
commit 2c59f4567e
6 changed files with 25 additions and 21 deletions

View file

@ -22,8 +22,6 @@ class CallbacksRegistry
continue if location.indexOf('(native)') isnt -1
continue if location.indexOf('atom.asar') isnt -1
[x, filenameAndLine] = /([^/^\)]*)\)?$/gi.exec(location)
[x, line, column] = /(\d+):(\d+)/g.exec(filenameAndLine)
id += parseInt(line) + parseInt(column)
break
@callbacks[id] = callback