modmore / CodeMirror

Integration for CodeMirror into MODx Revolution
12 stars 7 forks source link

unmark() throwing Uncaught TypeError upon subsequent clicks of "Search" button #18

Open pixelchutes opened 12 years ago

pixelchutes commented 12 years ago

If you enter a search term into the Search input field below the CodeMirror editor, clicking "Search" once will highlight the first occurrence, but subsequent clicks throws the following error:

Uncaught TypeError: Property '0' of object [object Object],[object Object] is not a function (cm.js:104)

I tried troubleshooting a few things, but oddly commenting out the internals of the unmark function seems to correct the issue, and subsequent searches work as expected.