import gatherRefs from '../../view/helpers/gatherRefs';
import { addHelpers } from '../../view/helpers/contextMethods';

export default function( node ) {
	if ( !node || !node._ractive ) return {};

	const storage = node._ractive;

	return addHelpers( {}, storage.proxy );
}

@@ -118,41 +118,179 @@
 ';%0A%0A
-export default function( node ) %7B
+const query = document && document.querySelector;%0A%0Aexport default function( node ) %7B%0A%09if ( typeof node === 'string' && query ) %7B%0A%09%09node = query.call( document, node );%0A%09%7D%0A
 %0A%09if

allow a query selector to be passed to getNodeInfo if it's supported by the env