Balti2016 / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

how to highlight simie timeline #388

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

in the example js: the code like this:

    var highlightMatcher = hasHighlights ? function(evt) {
        var text = evt.getText();
        var description = evt.getDescription();
        for (var x = 0; x < regexes.length; x++) {
            var regex = regexes[x];
            if (regex != null && (regex.test(text) || regex.test(description))) {
                return x;
            }
        }
        return -1;
    } : null;

which make mes totally confused. what the evt come from. 
i really want to know how the hilighting works. is there any more details?

Original issue reported on code.google.com by juana.al...@gmail.com on 24 Aug 2010 at 12:36

GoogleCodeExporter commented 9 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 10:10