jqueryview.js
function updateHtml(href) {
    var fragment = generator.fragment$[href];
    if (!fragment) return generator.emit('notify', 'Oops, jqueryview cannot find fragment: ' + href);

    var $html = $('[data-render-html="' + href + '"]');
    if (!$html.length) return generator.emit('notify', 'Oops, jqueryview cannot update html for fragment: ' + href);

    $html.html(generator.renderHtml(fragment));
    log('jqueryview updateHtml', location.pathname, location.search, location.hash);
    generator.emit('update-view', location.pathname, location.search, location.hash, window, $html);
  }
function updateHtml(href) {
    var fragment = generator.fragment$[href];
    if (!fragment) return generator.emit('notify', 'Oops, jqueryview cannot find fragment: ' + href);

    var $html = $('[data-render-html="' + href + '"]');
    if (!$html.length) return generator.emit('notify', 'Oops, jqueryview cannot update html for fragment: ' + href);

    $html.html(generator.renderHtml(fragment));
    log('jqueryview updateHtml', location.pathname, location.search, location.hash);
    generator.emit('update-view', location.pathname, location.search, location.hash, window, $html);
  }
function updateHtml ( href ) { var fragment = generator . fragment$ [ href ] ; if ( ! fragment ) return generator . emit ( 'notify' , 'Oops, jqueryview cannot find fragment: ' + href ) ; var $html = $ ( '[data-render-html="' + href + '"]' ) ; if ( ! $html . length ) return generator . emit ( 'notify' , 'Oops, jqueryview cannot update html for fragment: ' + href ) ; $html . html ( generator . renderHtml ( fragment ) ) ; log ( 'jqueryview updateHtml' , location . pathname , location . search , location . hash ) ; generator . emit ( 'update-view' , location . pathname , location . search , location . hash , window , $html ) ; }
this won't work if the href of a fragment is edited
this won t work if the href of a fragment is edited