<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[23893] trunk/wp-includes: Backbone 1.0.0.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/23893">23893</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2013-04-03 17:40:52 +0000 (Wed, 03 Apr 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Backbone 1.0.0.

Update media JS to reflect changes. Please open new tickets for remaining issues.

props koopersmith.
fixes <a href="http://core.trac.wordpress.org/ticket/23830">#23830</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsbackboneminjs">trunk/wp-includes/js/backbone.min.js</a></li>
<li><a href="#trunkwpincludesjsmediamodelsjs">trunk/wp-includes/js/media-models.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjsbackboneminjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/backbone.min.js (23892 => 23893)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/backbone.min.js        2013-04-03 17:36:25 UTC (rev 23892)
+++ trunk/wp-includes/js/backbone.min.js        2013-04-03 17:40:52 UTC (rev 23893)
</span><span class="lines">@@ -1,42 +1,7 @@
</span><del>-// Backbone.js 0.9.10
</del><ins>+// Backbone.js 1.0.0
</ins><span class="cx"> 
</span><del>-// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
</del><ins>+// (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc.
</ins><span class="cx"> // Backbone may be freely distributed under the MIT license.
</span><span class="cx"> // For all details and documentation:
</span><span class="cx"> // http://backbonejs.org
</span><del>-(function(){var n=this,B=n.Backbone,h=[],C=h.push,u=h.slice,D=h.splice,g;g=&quot;undefined&quot;!==typeof exports?exports:n.Backbone={};g.VERSION=&quot;0.9.10&quot;;var f=n._;!f&amp;&amp;&quot;undefined&quot;!==typeof require&amp;&amp;(f=require(&quot;underscore&quot;));g.$=n.jQuery||n.Zepto||n.ender;g.noConflict=function(){n.Backbone=B;return this};g.emulateHTTP=!1;g.emulateJSON=!1;var v=/\s+/,q=function(a,b,c,d){if(!c)return!0;if(&quot;object&quot;===typeof c)for(var e in c)a[b].apply(a,[e,c[e]].concat(d));else if(v.test(c)){c=c.split(v);e=0;for(var f=c.length;e&lt;
-f;e++)a[b].apply(a,[c[e]].concat(d))}else return!0},w=function(a,b){var c,d=-1,e=a.length;switch(b.length){case 0:for(;++d&lt;e;)(c=a[d]).callback.call(c.ctx);break;case 1:for(;++d&lt;e;)(c=a[d]).callback.call(c.ctx,b[0]);break;case 2:for(;++d&lt;e;)(c=a[d]).callback.call(c.ctx,b[0],b[1]);break;case 3:for(;++d&lt;e;)(c=a[d]).callback.call(c.ctx,b[0],b[1],b[2]);break;default:for(;++d&lt;e;)(c=a[d]).callback.apply(c.ctx,b)}},h=g.Events={on:function(a,b,c){if(!q(this,&quot;on&quot;,a,[b,c])||!b)return this;this._events||(this._events=
-{});(this._events[a]||(this._events[a]=[])).push({callback:b,context:c,ctx:c||this});return this},once:function(a,b,c){if(!q(this,&quot;once&quot;,a,[b,c])||!b)return this;var d=this,e=f.once(function(){d.off(a,e);b.apply(this,arguments)});e._callback=b;this.on(a,e,c);return this},off:function(a,b,c){var d,e,t,g,j,l,k,h;if(!this._events||!q(this,&quot;off&quot;,a,[b,c]))return this;if(!a&amp;&amp;!b&amp;&amp;!c)return this._events={},this;g=a?[a]:f.keys(this._events);j=0;for(l=g.length;j&lt;l;j++)if(a=g[j],d=this._events[a]){t=[];if(b||
-c){k=0;for(h=d.length;k&lt;h;k++)e=d[k],(b&amp;&amp;b!==e.callback&amp;&amp;b!==e.callback._callback||c&amp;&amp;c!==e.context)&amp;&amp;t.push(e)}this._events[a]=t}return this},trigger:function(a){if(!this._events)return this;var b=u.call(arguments,1);if(!q(this,&quot;trigger&quot;,a,b))return this;var c=this._events[a],d=this._events.all;c&amp;&amp;w(c,b);d&amp;&amp;w(d,arguments);return this},listenTo:function(a,b,c){var d=this._listeners||(this._listeners={}),e=a._listenerId||(a._listenerId=f.uniqueId(&quot;l&quot;));d[e]=a;a.on(b,&quot;object&quot;===typeof b?this:c,this);
-return this},stopListening:function(a,b,c){var d=this._listeners;if(d){if(a)a.off(b,&quot;object&quot;===typeof b?this:c,this),!b&amp;&amp;!c&amp;&amp;delete d[a._listenerId];else{&quot;object&quot;===typeof b&amp;&amp;(c=this);for(var e in d)d[e].off(b,c,this);this._listeners={}}return this}}};h.bind=h.on;h.unbind=h.off;f.extend(g,h);var r=g.Model=function(a,b){var c,d=a||{};this.cid=f.uniqueId(&quot;c&quot;);this.attributes={};b&amp;&amp;b.collection&amp;&amp;(this.collection=b.collection);b&amp;&amp;b.parse&amp;&amp;(d=this.parse(d,b)||{});if(c=f.result(this,&quot;defaults&quot;))d=f.defaults({},
-d,c);this.set(d,b);this.changed={};this.initialize.apply(this,arguments)};f.extend(r.prototype,h,{changed:null,idAttribute:&quot;id&quot;,initialize:function(){},toJSON:function(){return f.clone(this.attributes)},sync:function(){return g.sync.apply(this,arguments)},get:function(a){return this.attributes[a]},escape:function(a){return f.escape(this.get(a))},has:function(a){return null!=this.get(a)},set:function(a,b,c){var d,e,g,p,j,l,k;if(null==a)return this;&quot;object&quot;===typeof a?(e=a,c=b):(e={})[a]=b;c||(c={});
-if(!this._validate(e,c))return!1;g=c.unset;p=c.silent;a=[];j=this._changing;this._changing=!0;j||(this._previousAttributes=f.clone(this.attributes),this.changed={});k=this.attributes;l=this._previousAttributes;this.idAttribute in e&amp;&amp;(this.id=e[this.idAttribute]);for(d in e)b=e[d],f.isEqual(k[d],b)||a.push(d),f.isEqual(l[d],b)?delete this.changed[d]:this.changed[d]=b,g?delete k[d]:k[d]=b;if(!p){a.length&amp;&amp;(this._pending=!0);b=0;for(d=a.length;b&lt;d;b++)this.trigger(&quot;change:&quot;+a[b],this,k[a[b]],c)}if(j)return this;
-if(!p)for(;this._pending;)this._pending=!1,this.trigger(&quot;change&quot;,this,c);this._changing=this._pending=!1;return this},unset:function(a,b){return this.set(a,void 0,f.extend({},b,{unset:!0}))},clear:function(a){var b={},c;for(c in this.attributes)b[c]=void 0;return this.set(b,f.extend({},a,{unset:!0}))},hasChanged:function(a){return null==a?!f.isEmpty(this.changed):f.has(this.changed,a)},changedAttributes:function(a){if(!a)return this.hasChanged()?f.clone(this.changed):!1;var b,c=!1,d=this._changing?
-this._previousAttributes:this.attributes,e;for(e in a)if(!f.isEqual(d[e],b=a[e]))(c||(c={}))[e]=b;return c},previous:function(a){return null==a||!this._previousAttributes?null:this._previousAttributes[a]},previousAttributes:function(){return f.clone(this._previousAttributes)},fetch:function(a){a=a?f.clone(a):{};void 0===a.parse&amp;&amp;(a.parse=!0);var b=a.success;a.success=function(a,d,e){if(!a.set(a.parse(d,e),e))return!1;b&amp;&amp;b(a,d,e)};return this.sync(&quot;read&quot;,this,a)},save:function(a,b,c){var d,e,g=this.attributes;
-null==a||&quot;object&quot;===typeof a?(d=a,c=b):(d={})[a]=b;if(d&amp;&amp;(!c||!c.wait)&amp;&amp;!this.set(d,c))return!1;c=f.extend({validate:!0},c);if(!this._validate(d,c))return!1;d&amp;&amp;c.wait&amp;&amp;(this.attributes=f.extend({},g,d));void 0===c.parse&amp;&amp;(c.parse=!0);e=c.success;c.success=function(a,b,c){a.attributes=g;var k=a.parse(b,c);c.wait&amp;&amp;(k=f.extend(d||{},k));if(f.isObject(k)&amp;&amp;!a.set(k,c))return!1;e&amp;&amp;e(a,b,c)};a=this.isNew()?&quot;create&quot;:c.patch?&quot;patch&quot;:&quot;update&quot;;&quot;patch&quot;===a&amp;&amp;(c.attrs=d);a=this.sync(a,this,c);d&amp;&amp;c.wait&amp;&amp;(this.attributes=
-g);return a},destroy:function(a){a=a?f.clone(a):{};var b=this,c=a.success,d=function(){b.trigger(&quot;destroy&quot;,b,b.collection,a)};a.success=function(a,b,e){(e.wait||a.isNew())&amp;&amp;d();c&amp;&amp;c(a,b,e)};if(this.isNew())return a.success(this,null,a),!1;var e=this.sync(&quot;delete&quot;,this,a);a.wait||d();return e},url:function(){var a=f.result(this,&quot;urlRoot&quot;)||f.result(this.collection,&quot;url&quot;)||x();return this.isNew()?a:a+(&quot;/&quot;===a.charAt(a.length-1)?&quot;&quot;:&quot;/&quot;)+encodeURIComponent(this.id)},parse:function(a){return a},clone:function(){return new this.constructor(this.attributes)},
-isNew:function(){return null==this.id},isValid:function(a){return!this.validate||!this.validate(this.attributes,a)},_validate:function(a,b){if(!b.validate||!this.validate)return!0;a=f.extend({},this.attributes,a);var c=this.validationError=this.validate(a,b)||null;if(!c)return!0;this.trigger(&quot;invalid&quot;,this,c,b||{});return!1}});var s=g.Collection=function(a,b){b||(b={});b.model&amp;&amp;(this.model=b.model);void 0!==b.comparator&amp;&amp;(this.comparator=b.comparator);this.models=[];this._reset();this.initialize.apply(this,
-arguments);a&amp;&amp;this.reset(a,f.extend({silent:!0},b))};f.extend(s.prototype,h,{model:r,initialize:function(){},toJSON:function(a){return this.map(function(b){return b.toJSON(a)})},sync:function(){return g.sync.apply(this,arguments)},add:function(a,b){a=f.isArray(a)?a.slice():[a];b||(b={});var c,d,e,g,p,j,l,k,h,m;l=[];k=b.at;h=this.comparator&amp;&amp;null==k&amp;&amp;!1!=b.sort;m=f.isString(this.comparator)?this.comparator:null;c=0;for(d=a.length;c&lt;d;c++)(e=this._prepareModel(g=a[c],b))?(p=this.get(e))?b.merge&amp;&amp;(p.set(g===
-e?e.attributes:g,b),h&amp;&amp;(!j&amp;&amp;p.hasChanged(m))&amp;&amp;(j=!0)):(l.push(e),e.on(&quot;all&quot;,this._onModelEvent,this),this._byId[e.cid]=e,null!=e.id&amp;&amp;(this._byId[e.id]=e)):this.trigger(&quot;invalid&quot;,this,g,b);l.length&amp;&amp;(h&amp;&amp;(j=!0),this.length+=l.length,null!=k?D.apply(this.models,[k,0].concat(l)):C.apply(this.models,l));j&amp;&amp;this.sort({silent:!0});if(b.silent)return this;c=0;for(d=l.length;c&lt;d;c++)(e=l[c]).trigger(&quot;add&quot;,e,this,b);j&amp;&amp;this.trigger(&quot;sort&quot;,this,b);return this},remove:function(a,b){a=f.isArray(a)?a.slice():[a];
-b||(b={});var c,d,e,g;c=0;for(d=a.length;c&lt;d;c++)if(g=this.get(a[c]))delete this._byId[g.id],delete this._byId[g.cid],e=this.indexOf(g),this.models.splice(e,1),this.length--,b.silent||(b.index=e,g.trigger(&quot;remove&quot;,g,this,b)),this._removeReference(g);return this},push:function(a,b){a=this._prepareModel(a,b);this.add(a,f.extend({at:this.length},b));return a},pop:function(a){var b=this.at(this.length-1);this.remove(b,a);return b},unshift:function(a,b){a=this._prepareModel(a,b);this.add(a,f.extend({at:0},
-b));return a},shift:function(a){var b=this.at(0);this.remove(b,a);return b},slice:function(a,b){return this.models.slice(a,b)},get:function(a){if(null!=a)return this._idAttr||(this._idAttr=this.model.prototype.idAttribute),this._byId[a.id||a.cid||a[this._idAttr]||a]},at:function(a){return this.models[a]},where:function(a){return f.isEmpty(a)?[]:this.filter(function(b){for(var c in a)if(a[c]!==b.get(c))return!1;return!0})},sort:function(a){if(!this.comparator)throw Error(&quot;Cannot sort a set without a comparator&quot;);
-a||(a={});f.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(f.bind(this.comparator,this));a.silent||this.trigger(&quot;sort&quot;,this,a);return this},pluck:function(a){return f.invoke(this.models,&quot;get&quot;,a)},update:function(a,b){b=f.extend({add:!0,merge:!0,remove:!0},b);b.parse&amp;&amp;(a=this.parse(a,b));var c,d,e,g,h=[],j=[],l={};f.isArray(a)||(a=a?[a]:[]);if(b.add&amp;&amp;!b.remove)return this.add(a,b);d=0;for(e=a.length;d&lt;e;d++)c=a[d],g=this.get(c),
-b.remove&amp;&amp;g&amp;&amp;(l[g.cid]=!0),(b.add&amp;&amp;!g||b.merge&amp;&amp;g)&amp;&amp;h.push(c);if(b.remove){d=0;for(e=this.models.length;d&lt;e;d++)c=this.models[d],l[c.cid]||j.push(c)}j.length&amp;&amp;this.remove(j,b);h.length&amp;&amp;this.add(h,b);return this},reset:function(a,b){b||(b={});b.parse&amp;&amp;(a=this.parse(a,b));for(var c=0,d=this.models.length;c&lt;d;c++)this._removeReference(this.models[c]);b.previousModels=this.models.slice();this._reset();a&amp;&amp;this.add(a,f.extend({silent:!0},b));b.silent||this.trigger(&quot;reset&quot;,this,b);return this},fetch:function(a){a=
-a?f.clone(a):{};void 0===a.parse&amp;&amp;(a.parse=!0);var b=a.success;a.success=function(a,d,e){a[e.update?&quot;update&quot;:&quot;reset&quot;](d,e);b&amp;&amp;b(a,d,e)};return this.sync(&quot;read&quot;,this,a)},create:function(a,b){b=b?f.clone(b):{};if(!(a=this._prepareModel(a,b)))return!1;b.wait||this.add(a,b);var c=this,d=b.success;b.success=function(a,b,f){f.wait&amp;&amp;c.add(a,f);d&amp;&amp;d(a,b,f)};a.save(null,b);return a},parse:function(a){return a},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0;this.models.length=
-0;this._byId={}},_prepareModel:function(a,b){if(a instanceof r)return a.collection||(a.collection=this),a;b||(b={});b.collection=this;var c=new this.model(a,b);return!c._validate(a,b)?!1:c},_removeReference:function(a){this===a.collection&amp;&amp;delete a.collection;a.off(&quot;all&quot;,this._onModelEvent,this)},_onModelEvent:function(a,b,c,d){(&quot;add&quot;===a||&quot;remove&quot;===a)&amp;&amp;c!==this||(&quot;destroy&quot;===a&amp;&amp;this.remove(b,d),b&amp;&amp;a===&quot;change:&quot;+b.idAttribute&amp;&amp;(delete this._byId[b.previous(b.idAttribute)],null!=b.id&amp;&amp;(this._byId[b.id]=
-b)),this.trigger.apply(this,arguments))},sortedIndex:function(a,b,c){b||(b=this.comparator);var d=f.isFunction(b)?b:function(a){return a.get(b)};return f.sortedIndex(this.models,a,d,c)}});f.each(&quot;forEach each map collect reduce foldl inject reduceRight foldr find detect filter select reject every all some any include contains invoke max min toArray size first head take initial rest tail drop last without indexOf shuffle lastIndexOf isEmpty chain&quot;.split(&quot; &quot;),function(a){s.prototype[a]=function(){var b=
-u.call(arguments);b.unshift(this.models);return f[a].apply(f,b)}});f.each([&quot;groupBy&quot;,&quot;countBy&quot;,&quot;sortBy&quot;],function(a){s.prototype[a]=function(b,c){var d=f.isFunction(b)?b:function(a){return a.get(b)};return f[a](this.models,d,c)}});var y=g.Router=function(a){a||(a={});a.routes&amp;&amp;(this.routes=a.routes);this._bindRoutes();this.initialize.apply(this,arguments)},E=/\((.*?)\)/g,F=/(\(\?)?:\w+/g,G=/\*\w+/g,H=/[\-{}\[\]+?.,\\\^$|#\s]/g;f.extend(y.prototype,h,{initialize:function(){},route:function(a,b,c){f.isRegExp(a)||
-(a=this._routeToRegExp(a));c||(c=this[b]);g.history.route(a,f.bind(function(d){d=this._extractParameters(a,d);c&amp;&amp;c.apply(this,d);this.trigger.apply(this,[&quot;route:&quot;+b].concat(d));this.trigger(&quot;route&quot;,b,d);g.history.trigger(&quot;route&quot;,this,b,d)},this));return this},navigate:function(a,b){g.history.navigate(a,b);return this},_bindRoutes:function(){if(this.routes)for(var a,b=f.keys(this.routes);null!=(a=b.pop());)this.route(a,this.routes[a])},_routeToRegExp:function(a){a=a.replace(H,&quot;\\$&amp;&quot;).replace(E,&quot;(?:$1)?&quot;).replace(F,
-function(a,c){return c?a:&quot;([^/]+)&quot;}).replace(G,&quot;(.*?)&quot;);return RegExp(&quot;^&quot;+a+&quot;$&quot;)},_extractParameters:function(a,b){return a.exec(b).slice(1)}});var m=g.History=function(){this.handlers=[];f.bindAll(this,&quot;checkUrl&quot;);&quot;undefined&quot;!==typeof window&amp;&amp;(this.location=window.location,this.history=window.history)},z=/^[#\/]|\s+$/g,I=/^\/+|\/+$/g,J=/msie [\w.]+/,K=/\/$/;m.started=!1;f.extend(m.prototype,h,{interval:50,getHash:function(a){return(a=(a||this).location.href.match(/#(.*)$/))?a[1]:&quot;&quot;},getFragment:function(a,
-b){if(null==a)if(this._hasPushState||!this._wantsHashChange||b){a=this.location.pathname;var c=this.root.replace(K,&quot;&quot;);a.indexOf(c)||(a=a.substr(c.length))}else a=this.getHash();return a.replace(z,&quot;&quot;)},start:function(a){if(m.started)throw Error(&quot;Backbone.history has already been started&quot;);m.started=!0;this.options=f.extend({},{root:&quot;/&quot;},this.options,a);this.root=this.options.root;this._wantsHashChange=!1!==this.options.hashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=!(!this.options.pushState||
-!this.history||!this.history.pushState);a=this.getFragment();var b=document.documentMode,b=J.exec(navigator.userAgent.toLowerCase())&amp;&amp;(!b||7&gt;=b);this.root=(&quot;/&quot;+this.root+&quot;/&quot;).replace(I,&quot;/&quot;);b&amp;&amp;this._wantsHashChange&amp;&amp;(this.iframe=g.$('&lt;iframe src=&quot;javascript:0&quot; tabindex=&quot;-1&quot; /&gt;').hide().appendTo(&quot;body&quot;)[0].contentWindow,this.navigate(a));if(this._hasPushState)g.$(window).on(&quot;popstate&quot;,this.checkUrl);else if(this._wantsHashChange&amp;&amp;&quot;onhashchange&quot;in window&amp;&amp;!b)g.$(window).on(&quot;hashchange&quot;,this.checkUrl);
-else this._wantsHashChange&amp;&amp;(this._checkUrlInterval=setInterval(this.checkUrl,this.interval));this.fragment=a;a=this.location;b=a.pathname.replace(/[^\/]$/,&quot;$&amp;/&quot;)===this.root;if(this._wantsHashChange&amp;&amp;this._wantsPushState&amp;&amp;!this._hasPushState&amp;&amp;!b)return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+this.location.search+&quot;#&quot;+this.fragment),!0;this._wantsPushState&amp;&amp;(this._hasPushState&amp;&amp;b&amp;&amp;a.hash)&amp;&amp;(this.fragment=this.getHash().replace(z,&quot;&quot;),this.history.replaceState({},document.title,
-this.root+this.fragment+a.search));if(!this.options.silent)return this.loadUrl()},stop:function(){g.$(window).off(&quot;popstate&quot;,this.checkUrl).off(&quot;hashchange&quot;,this.checkUrl);clearInterval(this._checkUrlInterval);m.started=!1},route:function(a,b){this.handlers.unshift({route:a,callback:b})},checkUrl:function(){var a=this.getFragment();a===this.fragment&amp;&amp;this.iframe&amp;&amp;(a=this.getFragment(this.getHash(this.iframe)));if(a===this.fragment)return!1;this.iframe&amp;&amp;this.navigate(a);this.loadUrl()||this.loadUrl(this.getHash())},
-loadUrl:function(a){var b=this.fragment=this.getFragment(a);return f.any(this.handlers,function(a){if(a.route.test(b))return a.callback(b),!0})},navigate:function(a,b){if(!m.started)return!1;if(!b||!0===b)b={trigger:b};a=this.getFragment(a||&quot;&quot;);if(this.fragment!==a){this.fragment=a;var c=this.root+a;if(this._hasPushState)this.history[b.replace?&quot;replaceState&quot;:&quot;pushState&quot;]({},document.title,c);else if(this._wantsHashChange)this._updateHash(this.location,a,b.replace),this.iframe&amp;&amp;a!==this.getFragment(this.getHash(this.iframe))&amp;&amp;
-(b.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,a,b.replace));else return this.location.assign(c);b.trigger&amp;&amp;this.loadUrl(a)}},_updateHash:function(a,b,c){c?(c=a.href.replace(/(javascript:|#).*$/,&quot;&quot;),a.replace(c+&quot;#&quot;+b)):a.hash=&quot;#&quot;+b}});g.history=new m;var A=g.View=function(a){this.cid=f.uniqueId(&quot;view&quot;);this._configure(a||{});this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()},L=/^(\S+)\s*(.*)$/,M=&quot;model collection el id attributes className tagName events&quot;.split(&quot; &quot;);
-f.extend(A.prototype,h,{tagName:&quot;div&quot;,$:function(a){return this.$el.find(a)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();this.stopListening();return this},setElement:function(a,b){this.$el&amp;&amp;this.undelegateEvents();this.$el=a instanceof g.$?a:g.$(a);this.el=this.$el[0];!1!==b&amp;&amp;this.delegateEvents();return this},delegateEvents:function(a){if(a||(a=f.result(this,&quot;events&quot;))){this.undelegateEvents();for(var b in a){var c=a[b];f.isFunction(c)||(c=this[a[b]]);
-if(!c)throw Error('Method &quot;'+a[b]+'&quot; does not exist');var d=b.match(L),e=d[1],d=d[2],c=f.bind(c,this),e=e+(&quot;.delegateEvents&quot;+this.cid);if(&quot;&quot;===d)this.$el.on(e,c);else this.$el.on(e,d,c)}}},undelegateEvents:function(){this.$el.off(&quot;.delegateEvents&quot;+this.cid)},_configure:function(a){this.options&amp;&amp;(a=f.extend({},f.result(this,&quot;options&quot;),a));f.extend(this,f.pick(a,M));this.options=a},_ensureElement:function(){if(this.el)this.setElement(f.result(this,&quot;el&quot;),!1);else{var a=f.extend({},f.result(this,&quot;attributes&quot;));
-this.id&amp;&amp;(a.id=f.result(this,&quot;id&quot;));this.className&amp;&amp;(a[&quot;class&quot;]=f.result(this,&quot;className&quot;));a=g.$(&quot;&lt;&quot;+f.result(this,&quot;tagName&quot;)+&quot;&gt;&quot;).attr(a);this.setElement(a,!1)}}});var N={create:&quot;POST&quot;,update:&quot;PUT&quot;,patch:&quot;PATCH&quot;,&quot;delete&quot;:&quot;DELETE&quot;,read:&quot;GET&quot;};g.sync=function(a,b,c){var d=N[a];f.defaults(c||(c={}),{emulateHTTP:g.emulateHTTP,emulateJSON:g.emulateJSON});var e={type:d,dataType:&quot;json&quot;};c.url||(e.url=f.result(b,&quot;url&quot;)||x());if(null==c.data&amp;&amp;b&amp;&amp;(&quot;create&quot;===a||&quot;update&quot;===a||&quot;patch&quot;===a))e.contentType=&quot;application/json&quot;,
-e.data=JSON.stringify(c.attrs||b.toJSON(c));c.emulateJSON&amp;&amp;(e.contentType=&quot;application/x-www-form-urlencoded&quot;,e.data=e.data?{model:e.data}:{});if(c.emulateHTTP&amp;&amp;(&quot;PUT&quot;===d||&quot;DELETE&quot;===d||&quot;PATCH&quot;===d)){e.type=&quot;POST&quot;;c.emulateJSON&amp;&amp;(e.data._method=d);var h=c.beforeSend;c.beforeSend=function(a){a.setRequestHeader(&quot;X-HTTP-Method-Override&quot;,d);if(h)return h.apply(this,arguments)}}&quot;GET&quot;!==e.type&amp;&amp;!c.emulateJSON&amp;&amp;(e.processData=!1);var m=c.success;c.success=function(a){m&amp;&amp;m(b,a,c);b.trigger(&quot;sync&quot;,b,a,c)};
-var j=c.error;c.error=function(a){j&amp;&amp;j(b,a,c);b.trigger(&quot;error&quot;,b,a,c)};a=c.xhr=g.ajax(f.extend(e,c));b.trigger(&quot;request&quot;,b,a,c);return a};g.ajax=function(){return g.$.ajax.apply(g.$,arguments)};r.extend=s.extend=y.extend=A.extend=m.extend=function(a,b){var c=this,d;d=a&amp;&amp;f.has(a,&quot;constructor&quot;)?a.constructor:function(){return c.apply(this,arguments)};f.extend(d,c,b);var e=function(){this.constructor=d};e.prototype=c.prototype;d.prototype=new e;a&amp;&amp;f.extend(d.prototype,a);d.__super__=c.prototype;return d};
-var x=function(){throw Error('A &quot;url&quot; property or function must be specified');}}).call(this);
</del><ins>+(function(){var t=this;var e=t.Backbone;var i=[];var r=i.push;var s=i.slice;var n=i.splice;var a;if(typeof exports!==&quot;undefined&quot;){a=exports}else{a=t.Backbone={}}a.VERSION=&quot;1.0.0&quot;;var h=t._;if(!h&amp;&amp;typeof require!==&quot;undefined&quot;)h=require(&quot;underscore&quot;);a.$=t.jQuery||t.Zepto||t.ender||t.$;a.noConflict=function(){t.Backbone=e;return this};a.emulateHTTP=false;a.emulateJSON=false;var o=a.Events={on:function(t,e,i){if(!l(this,&quot;on&quot;,t,[e,i])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);r.push({callback:e,context:i,ctx:i||this});return this},once:function(t,e,i){if(!l(this,&quot;once&quot;,t,[e,i])||!e)return this;var r=this;var s=h.once(function(){r.off(t,s);e.apply(this,arguments)});s._callback=e;return this.on(t,s,i)},off:function(t,e,i){var r,s,n,a,o,u,c,f;if(!this._events||!l(this,&quot;off&quot;,t,[e,i]))return this;if(!t&amp;&amp;!e&amp;&amp;!i){this._events={};retu
 rn this}a=t?[t]:h.keys(this._events);for(o=0,u=a.length;o&lt;u;o++){t=a[o];if(n=this._events[t]){this._events[t]=r=[];if(e||i){for(c=0,f=n.length;c&lt;f;c++){s=n[c];if(e&amp;&amp;e!==s.callback&amp;&amp;e!==s.callback._callback||i&amp;&amp;i!==s.context){r.push(s)}}}if(!r.length)delete this._events[t]}}return this},trigger:function(t){if(!this._events)return this;var e=s.call(arguments,1);if(!l(this,&quot;trigger&quot;,t,e))return this;var i=this._events[t];var r=this._events.all;if(i)c(i,e);if(r)c(r,arguments);return this},stopListening:function(t,e,i){var r=this._listeners;if(!r)return this;var s=!e&amp;&amp;!i;if(typeof e===&quot;object&quot;)i=this;if(t)(r={})[t._listenerId]=t;for(var n in r){r[n].off(e,i,this);if(s)delete this._listeners[n]}return this}};var u=/\s+/;var l=function(t,e,i,r){if(!i)return true;if(typeof i===&quot;object&quot;){for(var s in i){t[e].apply(t,[s,i[s]].concat(r))}return false}if(u.test(i)){var n=i.split(u);for(var a=0,h=n.length;a&lt;h;a++){t[e
 ].apply(t,[n[a]].concat(r))}return false}return true};var c=function(t,e){var i,r=-1,s=t.length,n=e[0],a=e[1],h=e[2];switch(e.length){case 0:while(++r&lt;s)(i=t[r]).callback.call(i.ctx);return;case 1:while(++r&lt;s)(i=t[r]).callback.call(i.ctx,n);return;case 2:while(++r&lt;s)(i=t[r]).callback.call(i.ctx,n,a);return;case 3:while(++r&lt;s)(i=t[r]).callback.call(i.ctx,n,a,h);return;default:while(++r&lt;s)(i=t[r]).callback.apply(i.ctx,e)}};var f={listenTo:&quot;on&quot;,listenToOnce:&quot;once&quot;};h.each(f,function(t,e){o[e]=function(e,i,r){var s=this._listeners||(this._listeners={});var n=e._listenerId||(e._listenerId=h.uniqueId(&quot;l&quot;));s[n]=e;if(typeof i===&quot;object&quot;)r=this;e[t](i,r,this);return this}});o.bind=o.on;o.unbind=o.off;h.extend(a,o);var d=a.Model=function(t,e){var i;var r=t||{};e||(e={});this.cid=h.uniqueId(&quot;c&quot;);this.attributes={};h.extend(this,h.pick(e,p));if(e.parse)r=this.parse(r,e)||{};if(i=h.result(this,&quot;defaults&quot;)){r=h.de
 faults({},r,i)}this.set(r,e);this.changed={};this.initialize.apply(this,arguments)};var p=[&quot;url&quot;,&quot;urlRoot&quot;,&quot;collection&quot;];h.extend(d.prototype,o,{changed:null,validationError:null,idAttribute:&quot;id&quot;,initialize:function(){},toJSON:function(t){return h.clone(this.attributes)},sync:function(){return a.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return h.escape(this.get(t))},has:function(t){return this.get(t)!=null},set:function(t,e,i){var r,s,n,a,o,u,l,c;if(t==null)return this;if(typeof t===&quot;object&quot;){s=t;i=e}else{(s={})[t]=e}i||(i={});if(!this._validate(s,i))return false;n=i.unset;o=i.silent;a=[];u=this._changing;this._changing=true;if(!u){this._previousAttributes=h.clone(this.attributes);this.changed={}}c=this.attributes,l=this._previousAttributes;if(this.idAttribute in s)this.id=s[this.idAttribute];for(r in s){e=s[r];if(!h.isEqual(c[r],e))a.push(r);if(!h.isEqual(l[r],e)){this.changed[
 r]=e}else{delete this.changed[r]}n?delete c[r]:c[r]=e}if(!o){if(a.length)this._pending=true;for(var f=0,d=a.length;f&lt;d;f++){this.trigger(&quot;change:&quot;+a[f],this,c[a[f]],i)}}if(u)return this;if(!o){while(this._pending){this._pending=false;this.trigger(&quot;change&quot;,this,i)}}this._pending=false;this._changing=false;return this},unset:function(t,e){return this.set(t,void 0,h.extend({},e,{unset:true}))},clear:function(t){var e={};for(var i in this.attributes)e[i]=void 0;return this.set(e,h.extend({},t,{unset:true}))},hasChanged:function(t){if(t==null)return!h.isEmpty(this.changed);return h.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?h.clone(this.changed):false;var e,i=false;var r=this._changing?this._previousAttributes:this.attributes;for(var s in t){if(h.isEqual(r[s],e=t[s]))continue;(i||(i={}))[s]=e}return i},previous:function(t){if(t==null||!this._previousAttributes)return null;return this._previousAttributes[t]},previousAtt
 ributes:function(){return h.clone(this._previousAttributes)},fetch:function(t){t=t?h.clone(t):{};if(t.parse===void 0)t.parse=true;var e=this;var i=t.success;t.success=function(r){if(!e.set(e.parse(r,t),t))return false;if(i)i(e,r,t);e.trigger(&quot;sync&quot;,e,r,t)};R(this,t);return this.sync(&quot;read&quot;,this,t)},save:function(t,e,i){var r,s,n,a=this.attributes;if(t==null||typeof t===&quot;object&quot;){r=t;i=e}else{(r={})[t]=e}if(r&amp;&amp;(!i||!i.wait)&amp;&amp;!this.set(r,i))return false;i=h.extend({validate:true},i);if(!this._validate(r,i))return false;if(r&amp;&amp;i.wait){this.attributes=h.extend({},a,r)}if(i.parse===void 0)i.parse=true;var o=this;var u=i.success;i.success=function(t){o.attributes=a;var e=o.parse(t,i);if(i.wait)e=h.extend(r||{},e);if(h.isObject(e)&amp;&amp;!o.set(e,i)){return false}if(u)u(o,t,i);o.trigger(&quot;sync&quot;,o,t,i)};R(this,i);s=this.isNew()?&quot;create&quot;:i.patch?&quot;patch&quot;:&quot;update&quot;;if(s===&quot;patch&quot;)i.at
 trs=r;n=this.sync(s,this,i);if(r&amp;&amp;i.wait)this.attributes=a;return n},destroy:function(t){t=t?h.clone(t):{};var e=this;var i=t.success;var r=function(){e.trigger(&quot;destroy&quot;,e,e.collection,t)};t.success=function(s){if(t.wait||e.isNew())r();if(i)i(e,s,t);if(!e.isNew())e.trigger(&quot;sync&quot;,e,s,t)};if(this.isNew()){t.success();return false}R(this,t);var s=this.sync(&quot;delete&quot;,this,t);if(!t.wait)r();return s},url:function(){var t=h.result(this,&quot;urlRoot&quot;)||h.result(this.collection,&quot;url&quot;)||U();if(this.isNew())return t;return t+(t.charAt(t.length-1)===&quot;/&quot;?&quot;&quot;:&quot;/&quot;)+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return this.id==null},isValid:function(t){return this._validate({},h.extend(t||{},{validate:true}))},_validate:function(t,e){if(!e.validate||!this.validate)return true;t=h.extend({},this.attributes,t);var i=t
 his.validationError=this.validate(t,e)||null;if(!i)return true;this.trigger(&quot;invalid&quot;,this,i,h.extend(e||{},{validationError:i}));return false}});var v=[&quot;keys&quot;,&quot;values&quot;,&quot;pairs&quot;,&quot;invert&quot;,&quot;pick&quot;,&quot;omit&quot;];h.each(v,function(t){d.prototype[t]=function(){var e=s.call(arguments);e.unshift(this.attributes);return h[t].apply(h,e)}});var g=a.Collection=function(t,e){e||(e={});if(e.url)this.url=e.url;if(e.model)this.model=e.model;if(e.comparator!==void 0)this.comparator=e.comparator;this._reset();this.initialize.apply(this,arguments);if(t)this.reset(t,h.extend({silent:true},e))};var m={add:true,remove:true,merge:true};var y={add:true,merge:false,remove:false};h.extend(g.prototype,o,{model:d,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return a.sync.apply(this,arguments)},add:function(t,e){return this.set(t,h.defaults(e||{},y))},remove:function(t,e){t=h.is
 Array(t)?t.slice():[t];e||(e={});var i,r,s,n;for(i=0,r=t.length;i&lt;r;i++){n=this.get(t[i]);if(!n)continue;delete this._byId[n.id];delete this._byId[n.cid];s=this.indexOf(n);this.models.splice(s,1);this.length--;if(!e.silent){e.index=s;n.trigger(&quot;remove&quot;,n,this,e)}this._removeReference(n)}return this},set:function(t,e){e=h.defaults(e||{},m);if(e.parse)t=this.parse(t,e);if(!h.isArray(t))t=t?[t]:[];var i,s,a,o,u,l;var c=e.at;var f=this.comparator&amp;&amp;c==null&amp;&amp;e.sort!==false;var d=h.isString(this.comparator)?this.comparator:null;var p=[],v=[],g={};for(i=0,s=t.length;i&lt;s;i++){if(!(a=this._prepareModel(t[i],e)))continue;if(u=this.get(a)){if(e.remove)g[u.cid]=true;if(e.merge){u.set(a.attributes,e);if(f&amp;&amp;!l&amp;&amp;u.hasChanged(d))l=true}}else if(e.add){p.push(a);a.on(&quot;all&quot;,this._onModelEvent,this);this._byId[a.cid]=a;if(a.id!=null)this._byId[a.id]=a}}if(e.remove){for(i=0,s=this.length;i&lt;s;++i){if(!g[(a=this.models[i]).cid])v.push(a)
 }if(v.length)this.remove(v,e)}if(p.length){if(f)l=true;this.length+=p.length;if(c!=null){n.apply(this.models,[c,0].concat(p))}else{r.apply(this.models,p)}}if(l)this.sort({silent:true});if(e.silent)return this;for(i=0,s=p.length;i&lt;s;i++){(a=p[i]).trigger(&quot;add&quot;,a,this,e)}if(l)this.trigger(&quot;sort&quot;,this,e);return this},reset:function(t,e){e||(e={});for(var i=0,r=this.models.length;i&lt;r;i++){this._removeReference(this.models[i])}e.previousModels=this.models;this._reset();this.add(t,h.extend({silent:true},e));if(!e.silent)this.trigger(&quot;reset&quot;,this,e);return this},push:function(t,e){t=this._prepareModel(t,e);this.add(t,h.extend({at:this.length},e));return t},pop:function(t){var e=this.at(this.length-1);this.remove(e,t);return e},unshift:function(t,e){t=this._prepareModel(t,e);this.add(t,h.extend({at:0},e));return t},shift:function(t){var e=this.at(0);this.remove(e,t);return e},slice:function(t,e){return this.models.slice(t,e)},get:function(t){if(t=
 =null)return void 0;return this._byId[t.id!=null?t.id:t.cid||t]},at:function(t){return this.models[t]},where:function(t,e){if(h.isEmpty(t))return e?void 0:[];return this[e?&quot;find&quot;:&quot;filter&quot;](function(e){for(var i in t){if(t[i]!==e.get(i))return false}return true})},findWhere:function(t){return this.where(t,true)},sort:function(t){if(!this.comparator)throw new Error(&quot;Cannot sort a set without a comparator&quot;);t||(t={});if(h.isString(this.comparator)||this.comparator.length===1){this.models=this.sortBy(this.comparator,this)}else{this.models.sort(h.bind(this.comparator,this))}if(!t.silent)this.trigger(&quot;sort&quot;,this,t);return this},sortedIndex:function(t,e,i){e||(e=this.comparator);var r=h.isFunction(e)?e:function(t){return t.get(e)};return h.sortedIndex(this.models,t,r,i)},pluck:function(t){return h.invoke(this.models,&quot;get&quot;,t)},fetch:function(t){t=t?h.clone(t):{};if(t.parse===void 0)t.parse=true;var e=t.success;var i=this;t.success=fu
 nction(r){var s=t.reset?&quot;reset&quot;:&quot;set&quot;;i[s](r,t);if(e)e(i,r,t);i.trigger(&quot;sync&quot;,i,r,t)};R(this,t);return this.sync(&quot;read&quot;,this,t)},create:function(t,e){e=e?h.clone(e):{};if(!(t=this._prepareModel(t,e)))return false;if(!e.wait)this.add(t,e);var i=this;var r=e.success;e.success=function(s){if(e.wait)i.add(t,e);if(r)r(t,s,e)};t.save(null,e);return t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0;this.models=[];this._byId={}},_prepareModel:function(t,e){if(t instanceof d){if(!t.collection)t.collection=this;return t}e||(e={});e.collection=this;var i=new this.model(t,e);if(!i._validate(t,e)){this.trigger(&quot;invalid&quot;,this,t,e);return false}return i},_removeReference:function(t){if(this===t.collection)delete t.collection;t.off(&quot;all&quot;,this._onModelEvent,this)},_onModelEvent:function(t,e,i,r){if((t===&quot;add&quot;||t===&quot;remove&quot;)&amp;&amp;i!==th
 is)return;if(t===&quot;destroy&quot;)this.remove(e,r);if(e&amp;&amp;t===&quot;change:&quot;+e.idAttribute){delete this._byId[e.previous(e.idAttribute)];if(e.id!=null)this._byId[e.id]=e}this.trigger.apply(this,arguments)}});var _=[&quot;forEach&quot;,&quot;each&quot;,&quot;map&quot;,&quot;collect&quot;,&quot;reduce&quot;,&quot;foldl&quot;,&quot;inject&quot;,&quot;reduceRight&quot;,&quot;foldr&quot;,&quot;find&quot;,&quot;detect&quot;,&quot;filter&quot;,&quot;select&quot;,&quot;reject&quot;,&quot;every&quot;,&quot;all&quot;,&quot;some&quot;,&quot;any&quot;,&quot;include&quot;,&quot;contains&quot;,&quot;invoke&quot;,&quot;max&quot;,&quot;min&quot;,&quot;toArray&quot;,&quot;size&quot;,&quot;first&quot;,&quot;head&quot;,&quot;take&quot;,&quot;initial&quot;,&quot;rest&quot;,&quot;tail&quot;,&quot;drop&quot;,&quot;last&quot;,&quot;without&quot;,&quot;indexOf&quot;,&quot;shuffle&quot;,&quot;lastIndexOf&quot;,&quot;isEmpty&quot;,&quot;chain&quot;];h.each(_,function(t){g.prototype[t]=
 function(){var e=s.call(arguments);e.unshift(this.models);return h[t].apply(h,e)}});var w=[&quot;groupBy&quot;,&quot;countBy&quot;,&quot;sortBy&quot;];h.each(w,function(t){g.prototype[t]=function(e,i){var r=h.isFunction(e)?e:function(t){return t.get(e)};return h[t](this.models,r,i)}});var b=a.View=function(t){this.cid=h.uniqueId(&quot;view&quot;);this._configure(t||{});this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()};var x=/^(\S+)\s*(.*)$/;var E=[&quot;model&quot;,&quot;collection&quot;,&quot;el&quot;,&quot;id&quot;,&quot;attributes&quot;,&quot;className&quot;,&quot;tagName&quot;,&quot;events&quot;];h.extend(b.prototype,o,{tagName:&quot;div&quot;,$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();this.stopListening();return this},setElement:function(t,e){if(this.$el)this.undelegateEvents();this.$el=t instanceof a.$?t:a.$(t);this.el=this.$el[0];if(e!==false)this.de
 legateEvents();return this},delegateEvents:function(t){if(!(t||(t=h.result(this,&quot;events&quot;))))return this;this.undelegateEvents();for(var e in t){var i=t[e];if(!h.isFunction(i))i=this[t[e]];if(!i)continue;var r=e.match(x);var s=r[1],n=r[2];i=h.bind(i,this);s+=&quot;.delegateEvents&quot;+this.cid;if(n===&quot;&quot;){this.$el.on(s,i)}else{this.$el.on(s,n,i)}}return this},undelegateEvents:function(){this.$el.off(&quot;.delegateEvents&quot;+this.cid);return this},_configure:function(t){if(this.options)t=h.extend({},h.result(this,&quot;options&quot;),t);h.extend(this,h.pick(t,E));this.options=t},_ensureElement:function(){if(!this.el){var t=h.extend({},h.result(this,&quot;attributes&quot;));if(this.id)t.id=h.result(this,&quot;id&quot;);if(this.className)t[&quot;class&quot;]=h.result(this,&quot;className&quot;);var e=a.$(&quot;&lt;&quot;+h.result(this,&quot;tagName&quot;)+&quot;&gt;&quot;).attr(t);this.setElement(e,false)}else{this.setElement(h.result(this,&quot;el&quot;),
 false)}}});a.sync=function(t,e,i){var r=k[t];h.defaults(i||(i={}),{emulateHTTP:a.emulateHTTP,emulateJSON:a.emulateJSON});var s={type:r,dataType:&quot;json&quot;};if(!i.url){s.url=h.result(e,&quot;url&quot;)||U()}if(i.data==null&amp;&amp;e&amp;&amp;(t===&quot;create&quot;||t===&quot;update&quot;||t===&quot;patch&quot;)){s.contentType=&quot;application/json&quot;;s.data=JSON.stringify(i.attrs||e.toJSON(i))}if(i.emulateJSON){s.contentType=&quot;application/x-www-form-urlencoded&quot;;s.data=s.data?{model:s.data}:{}}if(i.emulateHTTP&amp;&amp;(r===&quot;PUT&quot;||r===&quot;DELETE&quot;||r===&quot;PATCH&quot;)){s.type=&quot;POST&quot;;if(i.emulateJSON)s.data._method=r;var n=i.beforeSend;i.beforeSend=function(t){t.setRequestHeader(&quot;X-HTTP-Method-Override&quot;,r);if(n)return n.apply(this,arguments)}}if(s.type!==&quot;GET&quot;&amp;&amp;!i.emulateJSON){s.processData=false}if(s.type===&quot;PATCH&quot;&amp;&amp;window.ActiveXObject&amp;&amp;!(window.external&amp;&amp;window.ext
 ernal.msActiveXFilteringEnabled)){s.xhr=function(){return new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;)}}var o=i.xhr=a.ajax(h.extend(s,i));e.trigger(&quot;request&quot;,e,o,i);return o};var k={create:&quot;POST&quot;,update:&quot;PUT&quot;,patch:&quot;PATCH&quot;,&quot;delete&quot;:&quot;DELETE&quot;,read:&quot;GET&quot;};a.ajax=function(){return a.$.ajax.apply(a.$,arguments)};var S=a.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var $=/\((.*?)\)/g;var T=/(\(\?)?:\w+/g;var H=/\*\w+/g;var A=/[\-{}\[\]+?.,\\\^$|#\s]/g;h.extend(S.prototype,o,{initialize:function(){},route:function(t,e,i){if(!h.isRegExp(t))t=this._routeToRegExp(t);if(h.isFunction(e)){i=e;e=&quot;&quot;}if(!i)i=this[e];var r=this;a.history.route(t,function(s){var n=r._extractParameters(t,s);i&amp;&amp;i.apply(r,n);r.trigger.apply(r,[&quot;route:&quot;+e].concat(n));r.trigger(&quot;route&quot;,e,n);a.history.trigger(&quot;route&quot;,r,e,
 n)});return this},navigate:function(t,e){a.history.navigate(t,e);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=h.result(this,&quot;routes&quot;);var t,e=h.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(A,&quot;\\$&amp;&quot;).replace($,&quot;(?:$1)?&quot;).replace(T,function(t,e){return e?t:&quot;([^/]+)&quot;}).replace(H,&quot;(.*?)&quot;);return new RegExp(&quot;^&quot;+t+&quot;$&quot;)},_extractParameters:function(t,e){var i=t.exec(e).slice(1);return h.map(i,function(t){return t?decodeURIComponent(t):null})}});var I=a.History=function(){this.handlers=[];h.bindAll(this,&quot;checkUrl&quot;);if(typeof window!==&quot;undefined&quot;){this.location=window.location;this.history=window.history}};var N=/^[#\/]|\s+$/g;var P=/^\/+|\/+$/g;var O=/msie [\w.]+/;var C=/\/$/;I.started=false;h.extend(I.prototype,o,{interval:50,getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return
  e?e[1]:&quot;&quot;},getFragment:function(t,e){if(t==null){if(this._hasPushState||!this._wantsHashChange||e){t=this.location.pathname;var i=this.root.replace(C,&quot;&quot;);if(!t.indexOf(i))t=t.substr(i.length)}else{t=this.getHash()}}return t.replace(N,&quot;&quot;)},start:function(t){if(I.started)throw new Error(&quot;Backbone.history has already been started&quot;);I.started=true;this.options=h.extend({},{root:&quot;/&quot;},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.options.pushState&amp;&amp;this.history&amp;&amp;this.history.pushState);var e=this.getFragment();var i=document.documentMode;var r=O.exec(navigator.userAgent.toLowerCase())&amp;&amp;(!i||i&lt;=7);this.root=(&quot;/&quot;+this.root+&quot;/&quot;).replace(P,&quot;/&quot;);if(r&amp;&amp;this._wantsHashChange){this.iframe=a.$('&lt;iframe src=&quot;javascript:0&quot; tabindex=&quot;-1&q
 uot; /&gt;').hide().appendTo(&quot;body&quot;)[0].contentWindow;this.navigate(e)}if(this._hasPushState){a.$(window).on(&quot;popstate&quot;,this.checkUrl)}else if(this._wantsHashChange&amp;&amp;&quot;onhashchange&quot;in window&amp;&amp;!r){a.$(window).on(&quot;hashchange&quot;,this.checkUrl)}else if(this._wantsHashChange){this._checkUrlInterval=setInterval(this.checkUrl,this.interval)}this.fragment=e;var s=this.location;var n=s.pathname.replace(/[^\/]$/,&quot;$&amp;/&quot;)===this.root;if(this._wantsHashChange&amp;&amp;this._wantsPushState&amp;&amp;!this._hasPushState&amp;&amp;!n){this.fragment=this.getFragment(null,true);this.location.replace(this.root+this.location.search+&quot;#&quot;+this.fragment);return true}else if(this._wantsPushState&amp;&amp;this._hasPushState&amp;&amp;n&amp;&amp;s.hash){this.fragment=this.getHash().replace(N,&quot;&quot;);this.history.replaceState({},document.title,this.root+this.fragment+s.search)}if(!this.options.silent)return this.loadUrl()},s
 top:function(){a.$(window).off(&quot;popstate&quot;,this.checkUrl).off(&quot;hashchange&quot;,this.checkUrl);clearInterval(this._checkUrlInterval);I.started=false},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&amp;&amp;this.iframe){e=this.getFragment(this.getHash(this.iframe))}if(e===this.fragment)return false;if(this.iframe)this.navigate(e);this.loadUrl()||this.loadUrl(this.getHash())},loadUrl:function(t){var e=this.fragment=this.getFragment(t);var i=h.any(this.handlers,function(t){if(t.route.test(e)){t.callback(e);return true}});return i},navigate:function(t,e){if(!I.started)return false;if(!e||e===true)e={trigger:e};t=this.getFragment(t||&quot;&quot;);if(this.fragment===t)return;this.fragment=t;var i=this.root+t;if(this._hasPushState){this.history[e.replace?&quot;replaceState&quot;:&quot;pushState&quot;]({},document.title,i)}else if(this._wantsHashChange){this._updateHash(this.location,t
 ,e.replace);if(this.iframe&amp;&amp;t!==this.getFragment(this.getHash(this.iframe))){if(!e.replace)this.iframe.document.open().close();this._updateHash(this.iframe.location,t,e.replace)}}else{return this.location.assign(i)}if(e.trigger)this.loadUrl(t)},_updateHash:function(t,e,i){if(i){var r=t.href.replace(/(javascript:|#).*$/,&quot;&quot;);t.replace(r+&quot;#&quot;+e)}else{t.hash=&quot;#&quot;+e}}});a.history=new I;var j=function(t,e){var i=this;var r;if(t&amp;&amp;h.has(t,&quot;constructor&quot;)){r=t.constructor}else{r=function(){return i.apply(this,arguments)}}h.extend(r,i,e);var s=function(){this.constructor=r};s.prototype=i.prototype;r.prototype=new s;if(t)h.extend(r.prototype,t);r.__super__=i.prototype;return r};d.extend=g.extend=S.extend=b.extend=I.extend=j;var U=function(){throw new Error('A &quot;url&quot; property or function must be specified')};var R=function(t,e){var i=e.error;e.error=function(r){if(i)i(t,r,e);t.trigger(&quot;error&quot;,t,r,e)}}}).call(this);
</ins></span></pre></div>
<a id="trunkwpincludesjsmediamodelsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/media-models.js (23892 => 23893)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/media-models.js        2013-04-03 17:36:25 UTC (rev 23892)
+++ trunk/wp-includes/js/media-models.js        2013-04-03 17:40:52 UTC (rev 23893)
</span><span class="lines">@@ -75,13 +75,13 @@
</span><span class="cx"> 
</span><span class="cx">                 options.success = function( resp ) {
</span><span class="cx">                         if ( success )
</span><del>-                                success( model, resp, options );
</del><ins>+                                success( resp );
</ins><span class="cx">                         model.trigger( 'sync', model, resp, options );
</span><span class="cx">                 };
</span><span class="cx"> 
</span><span class="cx">                 options.error = function( xhr ) {
</span><span class="cx">                         if ( error )
</span><del>-                                error( model, xhr, options );
</del><ins>+                                error( xhr );
</ins><span class="cx">                         model.trigger( 'error', model, xhr, options );
</span><span class="cx">                 };
</span><span class="cx"> 
</span><span class="lines">@@ -745,7 +745,7 @@
</span><span class="cx">                                 return $.Deferred().resolveWith( this ).promise();
</span><span class="cx"> 
</span><span class="cx">                         options = options || {};
</span><del>-                        options.add = true;
</del><ins>+                        options.remove = false;
</ins><span class="cx"> 
</span><span class="cx">                         return this._more = this.fetch( options ).done( function( resp ) {
</span><span class="cx">                                 if ( _.isEmpty( resp ) || -1 === this.args.posts_per_page || resp.length &lt; this.args.posts_per_page )
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (23892 => 23893)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2013-04-03 17:36:25 UTC (rev 23892)
+++ trunk/wp-includes/script-loader.php        2013-04-03 17:40:52 UTC (rev 23893)
</span><span class="lines">@@ -276,7 +276,7 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'underscore', '/wp-includes/js/underscore.min.js', array(), '1.4.4', 1 );
</span><span class="cx">         $scripts-&gt;add( 'template', &quot;/wp-includes/js/template$suffix.js&quot;, array('underscore'), '1.4.4', 1 );
</span><del>-        $scripts-&gt;add( 'backbone', '/wp-includes/js/backbone.min.js', array('underscore','jquery', 'template'), '0.9.10', 1 );
</del><ins>+        $scripts-&gt;add( 'backbone', '/wp-includes/js/backbone.min.js', array('underscore','jquery', 'template'), '1.0.0', 1 );
</ins><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'revisions', &quot;/wp-admin/js/revisions$suffix.js&quot;, array( 'backbone', 'jquery-ui-slider', 'jquery-ui-tooltip' ), false, 1 );
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>