On 2013-09-16 10:04 AM, Gavin Sharp wrote:
On Mon, Sep 16, 2013 at 6:04 AM, Aryeh Gregor <a...@aryeh.name> wrote:
Probably the findbar code should continue implementing its own
checking, unless you're aware of other actual consumers that could
reuse the same code.
I agree, I don't think that we should be shooting for some generic
solution. But we do need to expose whatever the findbar code is doing
to JS for that bug, ideally.
I have this code in my Find In Numbers extension which attempts to do
this:
<http://hg.mozilla.org/users/ehsan.akhgari_gmail.com/extensions/file/6d210b7ca395/findinnumbers/content/findinnumbers.js#l83>,
which tries to implement this functionality. This is the same code that
I had in my ancient patch in that bug, so please take it with a grain of
salt, but I may have tuned it to cover some edge cases. Does this
satisfy your needs?
Cheers,
Ehsan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform