lib/polymerize.js
function extractInline($) {
  var scripts = [];
  $('script:not([src])').each(function() {
    var el  = $(this);
    var src = el.text();
    var closestPolymerElement = el.closest('polymer-element');
    if(closestPolymerElement.length) {
      src = fixPolymerInvocation(src, $(closestPolymerElement).attr('name'))
    }
    scripts.push(src);
    el.remove();
  })
  return scripts;
}
function extractInline($) {
  var scripts = [];
  $('script:not([src])').each(function() {
    var el  = $(this);
    var src = el.text();
    var closestPolymerElement = el.closest('polymer-element');
    if(closestPolymerElement.length) {
      src = fixPolymerInvocation(src, $(closestPolymerElement).attr('name'))
    }
    scripts.push(src);
    el.remove();
  })
  return scripts;
}
function extractInline ( $ ) { var scripts = [ ] ; $ ( 'script:not([src])' ) . each ( function ( ) { var el = $ ( this ) ; var src = el . text ( ) ; var closestPolymerElement = el . closest ( 'polymer-element' ) ; if ( closestPolymerElement . length ) { src = fixPolymerInvocation ( src , $ ( closestPolymerElement ) . attr ( 'name' ) ) } scripts . push ( src ) ; el . remove ( ) ; } ) return scripts ; }
Extract inline javascript sources

@param {Object} $
Whacko document

@return {Array}
Extract inline javascript sources