(array, results)
| 2056 | } |
| 2057 | |
| 2058 | var makeArray = function(array, results) { |
| 2059 | array = Array.prototype.slice.call( array ); |
| 2060 | |
| 2061 | if ( results ) { |
| 2062 | results.push.apply( results, array ); |
| 2063 | return results; |
| 2064 | } |
| 2065 | |
| 2066 | return array; |
| 2067 | }; |
| 2068 | |
| 2069 | // Perform a simple check to determine if the browser is capable of |
| 2070 | // converting a NodeList to an array using builtin methods. |