SoapBox/jQuery-linkify — pull request #49 by a1russell (2014-11-21 07:05:23+00:00)
Title: Convert NodeList to an Array to make PhantomJS 1.x happy.

When running Jasmine tests using PhantomJS, jQuery-linkify throws an exception with the following stacktrace:

```
✘ TypeError: '[object NodeList]' is not a valid argument for 'Function.prototype.apply' (evaluating 'dummyElement.childNodes') in http://localhost:7357/2777/assets/javascripts/libs/jquery.linkify.js?cb=0.22
483686660416424 (line 60)
TypeError: '[object NodeList]' is not a valid argument for 'Function.prototype.apply' (evaluating 'dummyElement.childNodes')
at http://localhost:7357/2777/assets/javascripts/libs/jquery.linkify.js?cb=0.22483686660416424:60
at http://localhost:7357/2777/assets/javascripts/libs/jquery.linkify.js?cb=0.22483686660416424:25
at Linkified (http://localhost:7357/2777/assets/javascripts/libs/jquery.linkify.js?cb=0.22483686660416424:12)
at http://localhost:7357/2777/assets/javascripts/libs/jquery.linkify.js?cb=0.22483686660416424:71
at http://localhost:7357/2777/assets/javascripts/libs/jquery.js?cb=0.22483686660416424:648
at http://localhost:7357/2777/assets/javascripts/libs/jquery.js?cb=0.22483686660416424:270
at http://localhost:7357/2777/assets/javascripts/libs/jquery.linkify.js?cb=0.22483686660416424:72
...
```

A similar issue was filed and fixed in Angular: https://github.com/angular/angular.js/issues/7851 .

The fix is to use the slice function to convert the NodeList to an array before passing it as an argument to push.apply.