diff options
Diffstat (limited to 'microlight.js')
-rw-r--r-- | microlight.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/microlight.js b/microlight.js index 5aa193a..917b593 100644 --- a/microlight.js +++ b/microlight.js | |||
@@ -36,9 +36,9 @@ | |||
36 | 36 | ||
37 | 37 | ||
38 | 38 | ||
39 | var reset = function(cls) { | 39 | var reset = function() { |
40 | // nodes to highlight | 40 | // nodes to highlight |
41 | microlighted = _document.getElementsByClassName(cls||'microlight'); | 41 | microlighted = _document.querySelectorAll('code'); |
42 | 42 | ||
43 | for (i = 0; el = microlighted[i++];) { | 43 | for (i = 0; el = microlighted[i++];) { |
44 | var text = el.textContent, | 44 | var text = el.textContent, |