From a735c6fc72ac391920aed71ce015363a6a33648d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?"J.=20Rene=CC=81e=20Beach"?= Date: Sun, 30 Sep 2012 20:00:59 -0400 Subject: [PATCH] Issue #1149866 by jessebeach: Adding Backbone and Underscore to core. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: J. ReneĢe Beach --- core/misc/backbone/backbone-min.js | 40 ++++++++++++++++++++++++++++++++ core/misc/underscore/underscore-min.js | 5 ++++ core/modules/system/system.module | 23 ++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 core/misc/backbone/backbone-min.js create mode 100644 core/misc/underscore/underscore-min.js diff --git a/core/misc/backbone/backbone-min.js b/core/misc/backbone/backbone-min.js new file mode 100644 index 0000000..68befe0 --- /dev/null +++ b/core/misc/backbone/backbone-min.js @@ -0,0 +1,40 @@ +// 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 k=this,y=k.Backbone,z=Array.prototype.splice,g;g="undefined"!==typeof exports?exports:k.Backbone={};g.VERSION="0.9.2";var f=k._;!f&&"undefined"!==typeof require&&(f=require("underscore"));g.$=k.jQuery||k.Zepto||k.ender;g.noConflict=function(){k.Backbone=y;return this};g.emulateHTTP=!1;g.emulateJSON=!1;var p=/\s+/,h=g.Events={on:function(a,b,c){var d,e;if(!b)return this;a=a.split(p);for(d=this._callbacks||(this._callbacks={});e=a.shift();)e=d[e]||(d[e]=[]),e.push(b,c);return this}, +off:function(a,b,c){var d,e,m;if(!(e=this._callbacks))return this;if(!a&&!b&&!c)return delete this._callbacks,this;for(a=a?a.split(p):f.keys(e);d=a.shift();)if(!(m=e[d])||!b&&!c)delete e[d];else for(d=m.length-2;0<=d;d-=2)b&&m[d]!==b||c&&m[d+1]!==c||m.splice(d,2);return this},trigger:function(a){var b,c,d,e,f,g,j;if(!(c=this._callbacks))return this;j=[];a=a.split(p);e=1;for(f=arguments.length;e=b);u.test(this.options.root)|| +(this.options.root+="/");b&&this._wantsHashChange&&(this.iframe=g.$('