1
0
Fork 0
forked from 0x2620/oxjs

return original string when highlight is called without query; lazy format annotation date

This commit is contained in:
rlx 2012-06-16 16:17:28 +00:00
commit 3fc8a47bf4
2 changed files with 5 additions and 4 deletions

View file

@ -254,6 +254,9 @@
'<span class="c">foo <br>bar</span> baz'
@*/
Ox.highlight = function(string, query, classname, isHTML) {
if (!query) {
return string;
}
var cursor = 0,
entities = [],
matches = [],