code: function updateSavedState() {
    'use strict';
    if (split) {
      return;
    }
  
    var mapping = {
      live: 'output',
      javascript: 'js',
      css: 'css',
      html: 'html',
      console: 'console'
    };
  
    var withRevision = true;
  
    var query = $panelCheckboxes.filter(':checked').map(function () {
      return mapping[this.getAttribute('data-panel')];
    }).get().join(',');
    $shareLinks.each(function () {
      var path = this.getAttribute('data-path');
      var url = jsbin.getURL({ withRevision: withRevision }) + path + (query && this.id !== 'livepreview' ? '?' + query : ''),
          nodeName = this.nodeName;
      var hash = panels.getHighlightLines();
  
      if (hash) {
        hash = '#' + hash;
      }
  
      if (nodeName === 'A') {
        this.href = url;
      } else if (nodeName === 'INPUT') {
        this.value = url;
        if (path === '/edit') {
          this.value += hash;
        }
      } else if (nodeName === 'TEXTAREA') {
        this.value = ('<a class="jsbin-embed" href="' + url + hash + '">' + documentTitle + '</a><' + 'script src="' + jsbin.static + '/js/embed.js"><' + '/script>').replace(/<>"&/g, function (m) {
            return {
              '<': '&lt;',
              '>': '&gt;',
              '"': '&quot;',
              '&': '&amp;'
            }[m];
          });
      }
    });
  }
docs: TODO candidate for removal