<!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>[21591] trunk/wp-includes: Please welcome Underscore.js and Backbone.js to core.</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/21591">21591</a></dd>
<dt>Author</dt> <dd>koopersmith</dd>
<dt>Date</dt> <dd>2012-08-22 22:24:20 +0000 (Wed, 22 Aug 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Please welcome Underscore.js and Backbone.js to core. fixes <a href="http://core.trac.wordpress.org/ticket/21664">#21664</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsbackboneminjs">trunk/wp-includes/js/backbone.min.js</a></li>
<li><a href="#trunkwpincludesjsunderscoreminjs">trunk/wp-includes/js/underscore.min.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjsbackboneminjs"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/js/backbone.min.js (0 => 21591)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/backbone.min.js                                (rev 0)
+++ trunk/wp-includes/js/backbone.min.js        2012-08-22 22:24:20 UTC (rev 21591)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+// Backbone.js 0.9.2
+
+// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
+// Backbone may be freely distributed under the MIT license.
+// For all details and documentation:
+// http://backbonejs.org
+(function(){var l=this,y=l.Backbone,z=Array.prototype.slice,A=Array.prototype.splice,g;g=&quot;undefined&quot;!==typeof exports?exports:l.Backbone={};g.VERSION=&quot;0.9.2&quot;;var f=l._;!f&amp;&amp;&quot;undefined&quot;!==typeof require&amp;&amp;(f=require(&quot;underscore&quot;));var i=l.jQuery||l.Zepto||l.ender;g.setDomLibrary=function(a){i=a};g.noConflict=function(){l.Backbone=y;return this};g.emulateHTTP=!1;g.emulateJSON=!1;var p=/\s+/,k=g.Events={on:function(a,b,c){var d,e,f,g,j;if(!b)return this;a=a.split(p);for(d=this._callbacks||(this._callbacks=
+{});e=a.shift();)f=(j=d[e])?j.tail:{},f.next=g={},f.context=c,f.callback=b,d[e]={tail:g,next:j?j.next:f};return this},off:function(a,b,c){var d,e,h,g,j,q;if(e=this._callbacks){if(!a&amp;&amp;!b&amp;&amp;!c)return delete this._callbacks,this;for(a=a?a.split(p):f.keys(e);d=a.shift();)if(h=e[d],delete e[d],h&amp;&amp;(b||c))for(g=h.tail;(h=h.next)!==g;)if(j=h.callback,q=h.context,b&amp;&amp;j!==b||c&amp;&amp;q!==c)this.on(d,j,q);return this}},trigger:function(a){var b,c,d,e,f,g;if(!(d=this._callbacks))return this;f=d.all;a=a.split(p);for(g=
+z.call(arguments,1);b=a.shift();){if(c=d[b])for(e=c.tail;(c=c.next)!==e;)c.callback.apply(c.context||this,g);if(c=f){e=c.tail;for(b=[b].concat(g);(c=c.next)!==e;)c.callback.apply(c.context||this,b)}}return this}};k.bind=k.on;k.unbind=k.off;var o=g.Model=function(a,b){var c;a||(a={});b&amp;&amp;b.parse&amp;&amp;(a=this.parse(a));if(c=n(this,&quot;defaults&quot;))a=f.extend({},c,a);b&amp;&amp;b.collection&amp;&amp;(this.collection=b.collection);this.attributes={};this._escapedAttributes={};this.cid=f.uniqueId(&quot;c&quot;);this.changed={};this._silent=
+{};this._pending={};this.set(a,{silent:!0});this.changed={};this._silent={};this._pending={};this._previousAttributes=f.clone(this.attributes);this.initialize.apply(this,arguments)};f.extend(o.prototype,k,{changed:null,_silent:null,_pending:null,idAttribute:&quot;id&quot;,initialize:function(){},toJSON:function(){return f.clone(this.attributes)},get:function(a){return this.attributes[a]},escape:function(a){var b;if(b=this._escapedAttributes[a])return b;b=this.get(a);return this._escapedAttributes[a]=f.escape(null==
+b?&quot;&quot;:&quot;&quot;+b)},has:function(a){return null!=this.get(a)},set:function(a,b,c){var d,e;f.isObject(a)||null==a?(d=a,c=b):(d={},d[a]=b);c||(c={});if(!d)return this;d instanceof o&amp;&amp;(d=d.attributes);if(c.unset)for(e in d)d[e]=void 0;if(!this._validate(d,c))return!1;this.idAttribute in d&amp;&amp;(this.id=d[this.idAttribute]);var b=c.changes={},h=this.attributes,g=this._escapedAttributes,j=this._previousAttributes||{};for(e in d){a=d[e];if(!f.isEqual(h[e],a)||c.unset&amp;&amp;f.has(h,e))delete g[e],(c.silent?this._silent:
+b)[e]=!0;c.unset?delete h[e]:h[e]=a;!f.isEqual(j[e],a)||f.has(h,e)!=f.has(j,e)?(this.changed[e]=a,c.silent||(this._pending[e]=!0)):(delete this.changed[e],delete this._pending[e])}c.silent||this.change(c);return this},unset:function(a,b){(b||(b={})).unset=!0;return this.set(a,null,b)},clear:function(a){(a||(a={})).unset=!0;return this.set(f.clone(this.attributes),a)},fetch:function(a){var a=a?f.clone(a):{},b=this,c=a.success;a.success=function(d,e,f){if(!b.set(b.parse(d,f),a))return!1;c&amp;&amp;c(b,d)};
+a.error=g.wrapError(a.error,b,a);return(this.sync||g.sync).call(this,&quot;read&quot;,this,a)},save:function(a,b,c){var d,e;f.isObject(a)||null==a?(d=a,c=b):(d={},d[a]=b);c=c?f.clone(c):{};if(c.wait){if(!this._validate(d,c))return!1;e=f.clone(this.attributes)}a=f.extend({},c,{silent:!0});if(d&amp;&amp;!this.set(d,c.wait?a:c))return!1;var h=this,i=c.success;c.success=function(a,b,e){b=h.parse(a,e);if(c.wait){delete c.wait;b=f.extend(d||{},b)}if(!h.set(b,c))return false;i?i(h,a):h.trigger(&quot;sync&quot;,h,a,c)};c.error=g.wrapError(c.error,
+h,c);b=this.isNew()?&quot;create&quot;:&quot;update&quot;;b=(this.sync||g.sync).call(this,b,this,c);c.wait&amp;&amp;this.set(e,a);return b},destroy:function(a){var a=a?f.clone(a):{},b=this,c=a.success,d=function(){b.trigger(&quot;destroy&quot;,b,b.collection,a)};if(this.isNew())return d(),!1;a.success=function(e){a.wait&amp;&amp;d();c?c(b,e):b.trigger(&quot;sync&quot;,b,e,a)};a.error=g.wrapError(a.error,b,a);var e=(this.sync||g.sync).call(this,&quot;delete&quot;,this,a);a.wait||d();return e},url:function(){var a=n(this,&quot;urlRoot&quot;)||n(this.collection,&quot;url&quot;)||t();
+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},change:function(a){a||(a={});var b=this._changing;this._changing=!0;for(var c in this._silent)this._pending[c]=!0;var d=f.extend({},a.changes,this._silent);this._silent={};for(c in d)this.trigger(&quot;change:&quot;+c,this,this.get(c),a);if(b)return this;for(;!f.isEmpty(this._pending);){this._pending=
+{};this.trigger(&quot;change&quot;,this,a);for(c in this.changed)!this._pending[c]&amp;&amp;!this._silent[c]&amp;&amp;delete this.changed[c];this._previousAttributes=f.clone(this.attributes)}this._changing=!1;return this},hasChanged:function(a){return!arguments.length?!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._previousAttributes,e;for(e in a)if(!f.isEqual(d[e],b=a[e]))(c||(c={}))[e]=b;return c},previous:function(a){return!arguments.length||
+!this._previousAttributes?null:this._previousAttributes[a]},previousAttributes:function(){return f.clone(this._previousAttributes)},isValid:function(){return!this.validate(this.attributes)},_validate:function(a,b){if(b.silent||!this.validate)return!0;var a=f.extend({},this.attributes,a),c=this.validate(a,b);if(!c)return!0;b&amp;&amp;b.error?b.error(this,c,b):this.trigger(&quot;error&quot;,this,c,b);return!1}});var r=g.Collection=function(a,b){b||(b={});b.model&amp;&amp;(this.model=b.model);b.comparator&amp;&amp;(this.comparator=b.comparator);
+this._reset();this.initialize.apply(this,arguments);a&amp;&amp;this.reset(a,{silent:!0,parse:b.parse})};f.extend(r.prototype,k,{model:o,initialize:function(){},toJSON:function(a){return this.map(function(b){return b.toJSON(a)})},add:function(a,b){var c,d,e,g,i,j={},k={},l=[];b||(b={});a=f.isArray(a)?a.slice():[a];c=0;for(d=a.length;c&lt;d;c++){if(!(e=a[c]=this._prepareModel(a[c],b)))throw Error(&quot;Can't add an invalid model to a collection&quot;);g=e.cid;i=e.id;j[g]||this._byCid[g]||null!=i&amp;&amp;(k[i]||this._byId[i])?
+l.push(c):j[g]=k[i]=e}for(c=l.length;c--;)a.splice(l[c],1);c=0;for(d=a.length;c&lt;d;c++)(e=a[c]).on(&quot;all&quot;,this._onModelEvent,this),this._byCid[e.cid]=e,null!=e.id&amp;&amp;(this._byId[e.id]=e);this.length+=d;A.apply(this.models,[null!=b.at?b.at:this.models.length,0].concat(a));this.comparator&amp;&amp;this.sort({silent:!0});if(b.silent)return this;c=0;for(d=this.models.length;c&lt;d;c++)if(j[(e=this.models[c]).cid])b.index=c,e.trigger(&quot;add&quot;,e,this,b);return this},remove:function(a,b){var c,d,e,g;b||(b={});a=f.isArray(a)?
+a.slice():[a];c=0;for(d=a.length;c&lt;d;c++)if(g=this.getByCid(a[c])||this.get(a[c]))delete this._byId[g.id],delete this._byCid[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,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},get:function(a){return null==a?void 0:this._byId[null!=a.id?a.id:a]},getByCid:function(a){return a&amp;&amp;this._byCid[a.cid||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){a||(a={});if(!this.comparator)throw Error(&quot;Cannot sort a set without a comparator&quot;);var b=f.bind(this.comparator,this);1==this.comparator.length?
+this.models=this.sortBy(b):this.models.sort(b);a.silent||this.trigger(&quot;reset&quot;,this,a);return this},pluck:function(a){return f.map(this.models,function(b){return b.get(a)})},reset:function(a,b){a||(a=[]);b||(b={});for(var c=0,d=this.models.length;c&lt;d;c++)this._removeReference(this.models[c]);this._reset();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=this,c=a.success;a.success=function(d,
+e,f){b[a.add?&quot;add&quot;:&quot;reset&quot;](b.parse(d,f),a);c&amp;&amp;c(b,d)};a.error=g.wrapError(a.error,b,a);return(this.sync||g.sync).call(this,&quot;read&quot;,this,a)},create:function(a,b){var c=this,b=b?f.clone(b):{},a=this._prepareModel(a,b);if(!a)return!1;b.wait||c.add(a,b);var d=b.success;b.success=function(e,f){b.wait&amp;&amp;c.add(e,b);d?d(e,f):e.trigger(&quot;sync&quot;,a,f,b)};a.save(null,b);return a},parse:function(a){return a},chain:function(){return f(this.models).chain()},_reset:function(){this.length=0;this.models=[];this._byId=
+{};this._byCid={}},_prepareModel:function(a,b){b||(b={});a instanceof o?a.collection||(a.collection=this):(b.collection=this,a=new this.model(a,b),a._validate(a.attributes,b)||(a=!1));return a},_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)],this._byId[b.id]=b),this.trigger.apply(this,
+arguments))}});f.each(&quot;forEach,each,map,reduce,reduceRight,find,detect,filter,select,reject,every,all,some,any,include,contains,invoke,max,min,sortBy,sortedIndex,toArray,size,first,initial,rest,last,without,indexOf,shuffle,lastIndexOf,isEmpty,groupBy&quot;.split(&quot;,&quot;),function(a){r.prototype[a]=function(){return f[a].apply(f,[this.models].concat(f.toArray(arguments)))}});var u=g.Router=function(a){a||(a={});a.routes&amp;&amp;(this.routes=a.routes);this._bindRoutes();this.initialize.apply(this,arguments)},B=/:\w+/g,
+C=/\*\w+/g,D=/[-[\]{}()+?.,\\^$|#\s]/g;f.extend(u.prototype,k,{initialize:function(){},route:function(a,b,c){g.history||(g.history=new m);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));g.history.trigger(&quot;route&quot;,this,b,d)},this));return this},navigate:function(a,b){g.history.navigate(a,b)},_bindRoutes:function(){if(this.routes){var a=[],b;for(b in this.routes)a.unshift([b,
+this.routes[b]]);b=0;for(var c=a.length;b&lt;c;b++)this.route(a[b][0],a[b][1],this[a[b][1]])}},_routeToRegExp:function(a){a=a.replace(D,&quot;\\$&amp;&quot;).replace(B,&quot;([^/]+)&quot;).replace(C,&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;)},s=/^[#\/]/,E=/msie [\w.]+/;m.started=!1;f.extend(m.prototype,k,{interval:50,getHash:function(a){return(a=(a?a.location:window.location).href.match(/#(.*)$/))?a[1]:
+&quot;&quot;},getFragment:function(a,b){if(null==a)if(this._hasPushState||b){var a=window.location.pathname,c=window.location.search;c&amp;&amp;(a+=c)}else a=this.getHash();a.indexOf(this.options.root)||(a=a.substr(this.options.root.length));return a.replace(s,&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._wantsHashChange=!1!==this.options.hashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=
+!(!this.options.pushState||!window.history||!window.history.pushState);var a=this.getFragment(),b=document.documentMode;if(b=E.exec(navigator.userAgent.toLowerCase())&amp;&amp;(!b||7&gt;=b))this.iframe=i('&lt;iframe src=&quot;javascript:0&quot; tabindex=&quot;-1&quot; /&gt;').hide().appendTo(&quot;body&quot;)[0].contentWindow,this.navigate(a);this._hasPushState?i(window).bind(&quot;popstate&quot;,this.checkUrl):this._wantsHashChange&amp;&amp;&quot;onhashchange&quot;in window&amp;&amp;!b?i(window).bind(&quot;hashchange&quot;,this.checkUrl):this._wantsHashChange&amp;&amp;(this._checkUrlInterval=setInterval(this.checkUrl,
+this.interval));this.fragment=a;a=window.location;b=a.pathname==this.options.root;if(this._wantsHashChange&amp;&amp;this._wantsPushState&amp;&amp;!this._hasPushState&amp;&amp;!b)return this.fragment=this.getFragment(null,!0),window.location.replace(this.options.root+&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(s,&quot;&quot;),window.history.replaceState({},document.title,a.protocol+&quot;//&quot;+a.host+this.options.root+this.fragment));if(!this.options.silent)return this.loadUrl()},
+stop:function(){i(window).unbind(&quot;popstate&quot;,this.checkUrl).unbind(&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};var c=(a||&quot;&quot;).replace(s,&quot;&quot;);this.fragment!=c&amp;&amp;(this._hasPushState?(0!=c.indexOf(this.options.root)&amp;&amp;(c=this.options.root+c),this.fragment=c,window.history[b.replace?&quot;replaceState&quot;:&quot;pushState&quot;]({},document.title,c)):this._wantsHashChange?(this.fragment=c,this._updateHash(window.location,c,b.replace),this.iframe&amp;&amp;c!=this.getFragment(this.getHash(this.iframe))&amp;&amp;(b.replace||
+this.iframe.document.open().close(),this._updateHash(this.iframe.location,c,b.replace))):window.location.assign(this.options.root+a),b.trigger&amp;&amp;this.loadUrl(a))},_updateHash:function(a,b,c){c?a.replace(a.toString().replace(/(javascript:|#).*$/,&quot;&quot;)+&quot;#&quot;+b):a.hash=b}});var v=g.View=function(a){this.cid=f.uniqueId(&quot;view&quot;);this._configure(a||{});this._ensureElement();this.initialize.apply(this,arguments);this.delegateEvents()},F=/^(\S+)\s*(.*)$/,w=&quot;model,collection,el,id,attributes,className,tagName&quot;.split(&quot;,&quot;);
+f.extend(v.prototype,k,{tagName:&quot;div&quot;,$:function(a){return this.$el.find(a)},initialize:function(){},render:function(){return this},remove:function(){this.$el.remove();return this},make:function(a,b,c){a=document.createElement(a);b&amp;&amp;i(a).attr(b);c&amp;&amp;i(a).html(c);return a},setElement:function(a,b){this.$el&amp;&amp;this.undelegateEvents();this.$el=a instanceof i?a:i(a);this.el=this.$el[0];!1!==b&amp;&amp;this.delegateEvents();return this},delegateEvents:function(a){if(a||(a=n(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(F),e=d[1],d=d[2],c=f.bind(c,this),e=e+(&quot;.delegateEvents&quot;+this.cid);&quot;&quot;===d?this.$el.bind(e,c):this.$el.delegate(d,e,c)}}},undelegateEvents:function(){this.$el.unbind(&quot;.delegateEvents&quot;+this.cid)},_configure:function(a){this.options&amp;&amp;(a=f.extend({},this.options,a));for(var b=0,c=w.length;b&lt;c;b++){var d=w[b];a[d]&amp;&amp;(this[d]=a[d])}this.options=a},_ensureElement:function(){if(this.el)this.setElement(this.el,
+!1);else{var a=n(this,&quot;attributes&quot;)||{};this.id&amp;&amp;(a.id=this.id);this.className&amp;&amp;(a[&quot;class&quot;]=this.className);this.setElement(this.make(this.tagName,a),!1)}}});o.extend=r.extend=u.extend=v.extend=function(a,b){var c=G(this,a,b);c.extend=this.extend;return c};var H={create:&quot;POST&quot;,update:&quot;PUT&quot;,&quot;delete&quot;:&quot;DELETE&quot;,read:&quot;GET&quot;};g.sync=function(a,b,c){var d=H[a];c||(c={});var e={type:d,dataType:&quot;json&quot;};c.url||(e.url=n(b,&quot;url&quot;)||t());if(!c.data&amp;&amp;b&amp;&amp;(&quot;create&quot;==a||&quot;update&quot;==a))e.contentType=&quot;application/json&quot;,
+e.data=JSON.stringify(b.toJSON());g.emulateJSON&amp;&amp;(e.contentType=&quot;application/x-www-form-urlencoded&quot;,e.data=e.data?{model:e.data}:{});if(g.emulateHTTP&amp;&amp;(&quot;PUT&quot;===d||&quot;DELETE&quot;===d))g.emulateJSON&amp;&amp;(e.data._method=d),e.type=&quot;POST&quot;,e.beforeSend=function(a){a.setRequestHeader(&quot;X-HTTP-Method-Override&quot;,d)};&quot;GET&quot;!==e.type&amp;&amp;!g.emulateJSON&amp;&amp;(e.processData=!1);return i.ajax(f.extend(e,c))};g.wrapError=function(a,b,c){return function(d,e){e=d===b?e:d;a?a(b,e,c):b.trigger(&quot;error&quot;,b,e,c)}};var x=function(){},G=function(a,
+b,c){var d;d=b&amp;&amp;b.hasOwnProperty(&quot;constructor&quot;)?b.constructor:function(){a.apply(this,arguments)};f.extend(d,a);x.prototype=a.prototype;d.prototype=new x;b&amp;&amp;f.extend(d.prototype,b);c&amp;&amp;f.extend(d,c);d.prototype.constructor=d;d.__super__=a.prototype;return d},n=function(a,b){return!a||!a[b]?null:f.isFunction(a[b])?a[b]():a[b]},t=function(){throw Error('A &quot;url&quot; property or function must be specified');}}).call(this);
</ins></span></pre></div>
<a id="trunkwpincludesjsunderscoreminjs"></a>
<div class="addfile"><h4>Added: trunk/wp-includes/js/underscore.min.js (0 => 21591)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/underscore.min.js                                (rev 0)
+++ trunk/wp-includes/js/underscore.min.js        2012-08-22 22:24:20 UTC (rev 21591)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+// Underscore.js 1.3.3
+// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
+// Underscore is freely distributable under the MIT license.
+// Portions of Underscore are inspired or borrowed from Prototype,
+// Oliver Steele's Functional, and John Resig's Micro-Templating.
+// For all details and documentation:
+// http://documentcloud.github.com/underscore
+(function(){function r(a,c,d){if(a===c)return 0!==a||1/a==1/c;if(null==a||null==c)return a===c;a._chain&amp;&amp;(a=a._wrapped);c._chain&amp;&amp;(c=c._wrapped);if(a.isEqual&amp;&amp;b.isFunction(a.isEqual))return a.isEqual(c);if(c.isEqual&amp;&amp;b.isFunction(c.isEqual))return c.isEqual(a);var e=l.call(a);if(e!=l.call(c))return!1;switch(e){case &quot;[object String]&quot;:return a==&quot;&quot;+c;case &quot;[object Number]&quot;:return a!=+a?c!=+c:0==a?1/a==1/c:a==+c;case &quot;[object Date]&quot;:case &quot;[object Boolean]&quot;:return+a==+c;case &quot;[object RegExp]&quot;:return a.source==
+c.source&amp;&amp;a.global==c.global&amp;&amp;a.multiline==c.multiline&amp;&amp;a.ignoreCase==c.ignoreCase}if(&quot;object&quot;!=typeof a||&quot;object&quot;!=typeof c)return!1;for(var f=d.length;f--;)if(d[f]==a)return!0;d.push(a);var f=0,g=!0;if(&quot;[object Array]&quot;==e){if(f=a.length,g=f==c.length)for(;f--&amp;&amp;(g=f in a==f in c&amp;&amp;r(a[f],c[f],d)););}else{if(&quot;constructor&quot;in a!=&quot;constructor&quot;in c||a.constructor!=c.constructor)return!1;for(var h in a)if(b.has(a,h)&amp;&amp;(f++,!(g=b.has(c,h)&amp;&amp;r(a[h],c[h],d))))break;if(g){for(h in c)if(b.has(c,h)&amp;&amp;!f--)break;
+g=!f}}d.pop();return g}var s=this,I=s._,o={},k=Array.prototype,p=Object.prototype,i=k.slice,J=k.unshift,l=p.toString,K=p.hasOwnProperty,y=k.forEach,z=k.map,A=k.reduce,B=k.reduceRight,C=k.filter,D=k.every,E=k.some,q=k.indexOf,F=k.lastIndexOf,p=Array.isArray,L=Object.keys,t=Function.prototype.bind,b=function(a){return new m(a)};&quot;undefined&quot;!==typeof exports?(&quot;undefined&quot;!==typeof module&amp;&amp;module.exports&amp;&amp;(exports=module.exports=b),exports._=b):s._=b;b.VERSION=&quot;1.3.3&quot;;var j=b.each=b.forEach=function(a,
+c,d){if(a!=null)if(y&amp;&amp;a.forEach===y)a.forEach(c,d);else if(a.length===+a.length)for(var e=0,f=a.length;e&lt;f;e++){if(e in a&amp;&amp;c.call(d,a[e],e,a)===o)break}else for(e in a)if(b.has(a,e)&amp;&amp;c.call(d,a[e],e,a)===o)break};b.map=b.collect=function(a,c,b){var e=[];if(a==null)return e;if(z&amp;&amp;a.map===z)return a.map(c,b);j(a,function(a,g,h){e[e.length]=c.call(b,a,g,h)});if(a.length===+a.length)e.length=a.length;return e};b.reduce=b.foldl=b.inject=function(a,c,d,e){var f=arguments.length&gt;2;a==null&amp;&amp;(a=[]);if(A&amp;&amp;
+a.reduce===A){e&amp;&amp;(c=b.bind(c,e));return f?a.reduce(c,d):a.reduce(c)}j(a,function(a,b,i){if(f)d=c.call(e,d,a,b,i);else{d=a;f=true}});if(!f)throw new TypeError(&quot;Reduce of empty array with no initial value&quot;);return d};b.reduceRight=b.foldr=function(a,c,d,e){var f=arguments.length&gt;2;a==null&amp;&amp;(a=[]);if(B&amp;&amp;a.reduceRight===B){e&amp;&amp;(c=b.bind(c,e));return f?a.reduceRight(c,d):a.reduceRight(c)}var g=b.toArray(a).reverse();e&amp;&amp;!f&amp;&amp;(c=b.bind(c,e));return f?b.reduce(g,c,d,e):b.reduce(g,c)};b.find=b.detect=function(a,
+c,b){var e;G(a,function(a,g,h){if(c.call(b,a,g,h)){e=a;return true}});return e};b.filter=b.select=function(a,c,b){var e=[];if(a==null)return e;if(C&amp;&amp;a.filter===C)return a.filter(c,b);j(a,function(a,g,h){c.call(b,a,g,h)&amp;&amp;(e[e.length]=a)});return e};b.reject=function(a,c,b){var e=[];if(a==null)return e;j(a,function(a,g,h){c.call(b,a,g,h)||(e[e.length]=a)});return e};b.every=b.all=function(a,c,b){var e=true;if(a==null)return e;if(D&amp;&amp;a.every===D)return a.every(c,b);j(a,function(a,g,h){if(!(e=e&amp;&amp;c.call(b,
+a,g,h)))return o});return!!e};var G=b.some=b.any=function(a,c,d){c||(c=b.identity);var e=false;if(a==null)return e;if(E&amp;&amp;a.some===E)return a.some(c,d);j(a,function(a,b,h){if(e||(e=c.call(d,a,b,h)))return o});return!!e};b.include=b.contains=function(a,c){var b=false;if(a==null)return b;if(q&amp;&amp;a.indexOf===q)return a.indexOf(c)!=-1;return b=G(a,function(a){return a===c})};b.invoke=function(a,c){var d=i.call(arguments,2);return b.map(a,function(a){return(b.isFunction(c)?c||a:a[c]).apply(a,d)})};b.pluck=
+function(a,c){return b.map(a,function(a){return a[c]})};b.max=function(a,c,d){if(!c&amp;&amp;b.isArray(a)&amp;&amp;a[0]===+a[0])return Math.max.apply(Math,a);if(!c&amp;&amp;b.isEmpty(a))return-Infinity;var e={computed:-Infinity};j(a,function(a,b,h){b=c?c.call(d,a,b,h):a;b&gt;=e.computed&amp;&amp;(e={value:a,computed:b})});return e.value};b.min=function(a,c,d){if(!c&amp;&amp;b.isArray(a)&amp;&amp;a[0]===+a[0])return Math.min.apply(Math,a);if(!c&amp;&amp;b.isEmpty(a))return Infinity;var e={computed:Infinity};j(a,function(a,b,h){b=c?c.call(d,a,b,h):a;b&lt;e.computed&amp;&amp;
+(e={value:a,computed:b})});return e.value};b.shuffle=function(a){var b=[],d;j(a,function(a,f){d=Math.floor(Math.random()*(f+1));b[f]=b[d];b[d]=a});return b};b.sortBy=function(a,c,d){var e=b.isFunction(c)?c:function(a){return a[c]};return b.pluck(b.map(a,function(a,b,c){return{value:a,criteria:e.call(d,a,b,c)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;return c===void 0?1:d===void 0?-1:c&lt;d?-1:c&gt;d?1:0}),&quot;value&quot;)};b.groupBy=function(a,c){var d={},e=b.isFunction(c)?c:function(a){return a[c]};
+j(a,function(a,b){var c=e(a,b);(d[c]||(d[c]=[])).push(a)});return d};b.sortedIndex=function(a,c,d){d||(d=b.identity);for(var e=0,f=a.length;e&lt;f;){var g=e+f&gt;&gt;1;d(a[g])&lt;d(c)?e=g+1:f=g}return e};b.toArray=function(a){return!a?[]:b.isArray(a)||b.isArguments(a)?i.call(a):a.toArray&amp;&amp;b.isFunction(a.toArray)?a.toArray():b.values(a)};b.size=function(a){return b.isArray(a)?a.length:b.keys(a).length};b.first=b.head=b.take=function(a,b,d){return b!=null&amp;&amp;!d?i.call(a,0,b):a[0]};b.initial=function(a,b,d){return i.call(a,
+0,a.length-(b==null||d?1:b))};b.last=function(a,b,d){return b!=null&amp;&amp;!d?i.call(a,Math.max(a.length-b,0)):a[a.length-1]};b.rest=b.tail=function(a,b,d){return i.call(a,b==null||d?1:b)};b.compact=function(a){return b.filter(a,function(a){return!!a})};b.flatten=function(a,c){return b.reduce(a,function(a,e){if(b.isArray(e))return a.concat(c?e:b.flatten(e));a[a.length]=e;return a},[])};b.without=function(a){return b.difference(a,i.call(arguments,1))};b.uniq=b.unique=function(a,c,d){var d=d?b.map(a,d):a,
+e=[];a.length&lt;3&amp;&amp;(c=true);b.reduce(d,function(d,g,h){if(c?b.last(d)!==g||!d.length:!b.include(d,g)){d.push(g);e.push(a[h])}return d},[]);return e};b.union=function(){return b.uniq(b.flatten(arguments,true))};b.intersection=b.intersect=function(a){var c=i.call(arguments,1);return b.filter(b.uniq(a),function(a){return b.every(c,function(c){return b.indexOf(c,a)&gt;=0})})};b.difference=function(a){var c=b.flatten(i.call(arguments,1),true);return b.filter(a,function(a){return!b.include(c,a)})};b.zip=function(){for(var a=
+i.call(arguments),c=b.max(b.pluck(a,&quot;length&quot;)),d=Array(c),e=0;e&lt;c;e++)d[e]=b.pluck(a,&quot;&quot;+e);return d};b.indexOf=function(a,c,d){if(a==null)return-1;var e;if(d){d=b.sortedIndex(a,c);return a[d]===c?d:-1}if(q&amp;&amp;a.indexOf===q)return a.indexOf(c);d=0;for(e=a.length;d&lt;e;d++)if(d in a&amp;&amp;a[d]===c)return d;return-1};b.lastIndexOf=function(a,b){if(a==null)return-1;if(F&amp;&amp;a.lastIndexOf===F)return a.lastIndexOf(b);for(var d=a.length;d--;)if(d in a&amp;&amp;a[d]===b)return d;return-1};b.range=function(a,b,d){if(arguments.length&lt;=
+1){b=a||0;a=0}for(var d=arguments[2]||1,e=Math.max(Math.ceil((b-a)/d),0),f=0,g=Array(e);f&lt;e;){g[f++]=a;a=a+d}return g};var H=function(){};b.bind=function(a,c){var d,e;if(a.bind===t&amp;&amp;t)return t.apply(a,i.call(arguments,1));if(!b.isFunction(a))throw new TypeError;e=i.call(arguments,2);return d=function(){if(!(this instanceof d))return a.apply(c,e.concat(i.call(arguments)));H.prototype=a.prototype;var b=new H,g=a.apply(b,e.concat(i.call(arguments)));return Object(g)===g?g:b}};b.bindAll=function(a){var c=
+i.call(arguments,1);c.length==0&amp;&amp;(c=b.functions(a));j(c,function(c){a[c]=b.bind(a[c],a)});return a};b.memoize=function(a,c){var d={};c||(c=b.identity);return function(){var e=c.apply(this,arguments);return b.has(d,e)?d[e]:d[e]=a.apply(this,arguments)}};b.delay=function(a,b){var d=i.call(arguments,2);return setTimeout(function(){return a.apply(null,d)},b)};b.defer=function(a){return b.delay.apply(b,[a,1].concat(i.call(arguments,1)))};b.throttle=function(a,c){var d,e,f,g,h,i,j=b.debounce(function(){h=
+g=false},c);return function(){d=this;e=arguments;f||(f=setTimeout(function(){f=null;h&amp;&amp;a.apply(d,e);j()},c));g?h=true:i=a.apply(d,e);j();g=true;return i}};b.debounce=function(a,b,d){var e;return function(){var f=this,g=arguments;d&amp;&amp;!e&amp;&amp;a.apply(f,g);clearTimeout(e);e=setTimeout(function(){e=null;d||a.apply(f,g)},b)}};b.once=function(a){var b=false,d;return function(){if(b)return d;b=true;return d=a.apply(this,arguments)}};b.wrap=function(a,b){return function(){var d=[a].concat(i.call(arguments,0));
+return b.apply(this,d)}};b.compose=function(){var a=arguments;return function(){for(var b=arguments,d=a.length-1;d&gt;=0;d--)b=[a[d].apply(this,b)];return b[0]}};b.after=function(a,b){return a&lt;=0?b():function(){if(--a&lt;1)return b.apply(this,arguments)}};b.keys=L||function(a){if(a!==Object(a))throw new TypeError(&quot;Invalid object&quot;);var c=[],d;for(d in a)b.has(a,d)&amp;&amp;(c[c.length]=d);return c};b.values=function(a){return b.map(a,b.identity)};b.functions=b.methods=function(a){var c=[],d;for(d in a)b.isFunction(a[d])&amp;&amp;
+c.push(d);return c.sort()};b.extend=function(a){j(i.call(arguments,1),function(b){for(var d in b)a[d]=b[d]});return a};b.pick=function(a){var c={};j(b.flatten(i.call(arguments,1)),function(b){b in a&amp;&amp;(c[b]=a[b])});return c};b.defaults=function(a){j(i.call(arguments,1),function(b){for(var d in b)a[d]==null&amp;&amp;(a[d]=b[d])});return a};b.clone=function(a){return!b.isObject(a)?a:b.isArray(a)?a.slice():b.extend({},a)};b.tap=function(a,b){b(a);return a};b.isEqual=function(a,b){return r(a,b,[])};b.isEmpty=
+function(a){if(a==null)return true;if(b.isArray(a)||b.isString(a))return a.length===0;for(var c in a)if(b.has(a,c))return false;return true};b.isElement=function(a){return!!(a&amp;&amp;a.nodeType==1)};b.isArray=p||function(a){return l.call(a)==&quot;[object Array]&quot;};b.isObject=function(a){return a===Object(a)};b.isArguments=function(a){return l.call(a)==&quot;[object Arguments]&quot;};b.isArguments(arguments)||(b.isArguments=function(a){return!(!a||!b.has(a,&quot;callee&quot;))});b.isFunction=function(a){return l.call(a)==&quot;[object Function]&quot;};
+b.isString=function(a){return l.call(a)==&quot;[object String]&quot;};b.isNumber=function(a){return l.call(a)==&quot;[object Number]&quot;};b.isFinite=function(a){return b.isNumber(a)&amp;&amp;isFinite(a)};b.isNaN=function(a){return a!==a};b.isBoolean=function(a){return a===true||a===false||l.call(a)==&quot;[object Boolean]&quot;};b.isDate=function(a){return l.call(a)==&quot;[object Date]&quot;};b.isRegExp=function(a){return l.call(a)==&quot;[object RegExp]&quot;};b.isNull=function(a){return a===null};b.isUndefined=function(a){return a===void 0};b.has=function(a,
+b){return K.call(a,b)};b.noConflict=function(){s._=I;return this};b.identity=function(a){return a};b.times=function(a,b,d){for(var e=0;e&lt;a;e++)b.call(d,e)};b.escape=function(a){return(&quot;&quot;+a).replace(/&amp;/g,&quot;&amp;amp;&quot;).replace(/&lt;/g,&quot;&amp;lt;&quot;).replace(/&gt;/g,&quot;&amp;gt;&quot;).replace(/&quot;/g,&quot;&amp;quot;&quot;).replace(/'/g,&quot;&amp;#x27;&quot;).replace(/\//g,&quot;&amp;#x2F;&quot;)};b.result=function(a,c){if(a==null)return null;var d=a[c];return b.isFunction(d)?d.call(a):d};b.mixin=function(a){j(b.functions(a),function(c){M(c,b[c]=a[c])})};var N=0;b.uniqueId=
+function(a){var b=N++;return a?a+b:b};b.templateSettings={evaluate:/&lt;%([\s\S]+?)%&gt;/g,interpolate:/&lt;%=([\s\S]+?)%&gt;/g,escape:/&lt;%-([\s\S]+?)%&gt;/g};var u=/.^/,n={&quot;\\&quot;:&quot;\\&quot;,&quot;'&quot;:&quot;'&quot;,r:&quot;\r&quot;,n:&quot;\n&quot;,t:&quot;\t&quot;,u2028:&quot;\u2028&quot;,u2029:&quot;\u2029&quot;},v;for(v in n)n[n[v]]=v;var O=/\\|'|\r|\n|\t|\u2028|\u2029/g,P=/\\(\\|'|r|n|t|u2028|u2029)/g,w=function(a){return a.replace(P,function(a,b){return n[b]})};b.template=function(a,c,d){d=b.defaults(d||{},b.templateSettings);a=&quot;__p+='&quot;+a.replace(O,function(a){return&quot;\\&quot;+n[a]}).replace(d.escape||
+u,function(a,b){return&quot;'+\n_.escape(&quot;+w(b)+&quot;)+\n'&quot;}).replace(d.interpolate||u,function(a,b){return&quot;'+\n(&quot;+w(b)+&quot;)+\n'&quot;}).replace(d.evaluate||u,function(a,b){return&quot;';\n&quot;+w(b)+&quot;\n;__p+='&quot;})+&quot;';\n&quot;;d.variable||(a=&quot;with(obj||{}){\n&quot;+a+&quot;}\n&quot;);var a=&quot;var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};\n&quot;+a+&quot;return __p;\n&quot;,e=new Function(d.variable||&quot;obj&quot;,&quot;_&quot;,a);if(c)return e(c,b);c=function(a){return e.call(this,a,b)};c.source=&quot;function(&quot;+(d.variable||&quot;obj&quot;)+&quot;){\n&quot;+a+&quot;}&quot;;return c};
+b.chain=function(a){return b(a).chain()};var m=function(a){this._wrapped=a};b.prototype=m.prototype;var x=function(a,c){return c?b(a).chain():a},M=function(a,c){m.prototype[a]=function(){var a=i.call(arguments);J.call(a,this._wrapped);return x(c.apply(b,a),this._chain)}};b.mixin(b);j(&quot;pop,push,reverse,shift,sort,splice,unshift&quot;.split(&quot;,&quot;),function(a){var b=k[a];m.prototype[a]=function(){var d=this._wrapped;b.apply(d,arguments);var e=d.length;(a==&quot;shift&quot;||a==&quot;splice&quot;)&amp;&amp;e===0&amp;&amp;delete d[0];return x(d,
+this._chain)}});j([&quot;concat&quot;,&quot;join&quot;,&quot;slice&quot;],function(a){var b=k[a];m.prototype[a]=function(){return x(b.apply(this._wrapped,arguments),this._chain)}});m.prototype.chain=function(){this._chain=true;return this};m.prototype.value=function(){return this._wrapped}}).call(this);
</ins></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (21590 => 21591)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2012-08-22 21:20:15 UTC (rev 21590)
+++ trunk/wp-includes/script-loader.php        2012-08-22 22:24:20 UTC (rev 21591)
</span><span class="lines">@@ -252,6 +252,9 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'json2', &quot;/wp-includes/js/json2$suffix.js&quot;, array(), '2011-02-23');
</span><span class="cx"> 
</span><ins>+        $scripts-&gt;add( 'underscore', '/wp-includes/js/underscore.min.js', array(), '1.3.3', 1 );
+        $scripts-&gt;add( 'backbone', '/wp-includes/js/backbone.min.js', array('underscore'), '0.9.2', 1 );
+
</ins><span class="cx">         $scripts-&gt;add( 'imgareaselect', &quot;/wp-includes/js/imgareaselect/jquery.imgareaselect$suffix.js&quot;, array('jquery'), '0.9.8', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'password-strength-meter', &quot;/wp-admin/js/password-strength-meter$suffix.js&quot;, array('jquery'), false, 1 );
</span></span></pre>
</div>
</div>

</body>
</html>