nicinabox/shortcode.js — pull request #5 by dex-labs (2014-09-20 06:01:02+00:00)
Title: Update Shortcode.js

update replaceNodes to query this.el and not document.

reason:
```
var el = document.createElement('span');
el.innerHTML = '[hello]Good Morning World[/hello]';

new Shortcode(el, {
hello: function() {
return this.content;
}
});
```

The above will not work if replaceNodes function queries document when parsing.