Merge pull request #503 from sskeller/master

Add Backbone.Marionette 0.9.2
This commit is contained in:
Thomas Davis
2012-10-28 23:42:06 -07:00
6 changed files with 104 additions and 0 deletions
@@ -0,0 +1,5 @@
// Backbone.EventBinder, v0.1.0
// Copyright (c)2012 Derick Bailey, Muted Solutions, LLC.
// Distributed under MIT license
// http://github.com/marionettejs/backbone.eventbinder
Backbone.EventBinder=function(e,t){"use strict";function r(e){return e.jquery?n.jquery:n["default"]}var n={"default":{bindTo:function(e,t,n,r){r=r||this,e.on(t,n,r);var i={type:"default",obj:e,eventName:t,callback:n,context:r};return i},unbindFrom:function(e){e.obj.off(e.eventName,e.callback,e.context)}},jquery:{bindTo:function(e,n,r,i){i=i||this,r=t(r).bind(i),e.on(n,r);var s={type:"jquery",obj:e,eventName:n,callback:r,context:i};return s},unbindFrom:function(e){e.obj.off(e.eventName,e.callback)}}},i=function(){this._eventBindings=[]};return i.extend=e.View.extend,t.extend(i.prototype,{bindTo:function(){var e=arguments[0],t=r(e),n=t.bindTo.apply(this,arguments);return this._eventBindings.push(n),n},unbindFrom:function(e){n[e.type].unbindFrom.apply(this,arguments),this._eventBindings=t.reject(this._eventBindings,function(t){return t===e})},unbindAll:function(){var e=t.map(this._eventBindings,t.identity);t.each(e,this.unbindFrom,this)}}),i}(Backbone,_);
@@ -0,0 +1,28 @@
{
"name": "backbone.eventbinder",
"filename": "backbone.eventbinder.min.js",
"version": "0.1.0",
"description": "Manage Backbone Events Better",
"homepage": "http://github.com/marionettejs/backbone.eventbinder",
"keywords": [
"events",
"popular"
],
"devDependencies": {
"backbone.js": "0.9.2"
},
"maintainers": [
{
"name": "Derick Bailey",
"email": "derickbailey@gmail.com",
"web": "http://derickbailey.lostechies.com/"
}
],
"repositories": [
{
"type": "git",
"url": "http://github.com/marionettejs/backbone.eventbinder"
}
]
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,33 @@
{
"name": "backbone.marionette",
"filename": "backbone.marionette.min.js",
"version": "0.10.2",
"description": "Make your Backbone.js apps dance with a composite application architecture!",
"homepage": "http://github.com/marionettejs/backbone.marionette",
"keywords": [
"collections",
"models",
"controllers",
"events",
"popular"
],
"devDependencies": {
"backbone.js": "0.9.2",
"backbone.wreqr": "0.0.0",
"backbone.eventbinder": "0.1.0"
},
"maintainers": [
{
"name": "Derick Bailey",
"email": "derickbailey@gmail.com",
"web": "http://derickbailey.lostechies.com/"
}
],
"repositories": [
{
"type": "git",
"url": "http://github.com/marionettejs/backbone.marionette"
}
]
}
+5
View File
@@ -0,0 +1,5 @@
// Backbone.Wreqr, v0.0.0
// Copyright (c)2012 Derick Bailey, Muted Solutions, LLC.
// Distributed under MIT license
// http://github.com/marionettejs/backbone.wreqr
Backbone.Wreqr=function(e,t,n){"option strict";var r={};return r.Handlers=function(e,t){var n=function(){"use strict";this._handlers={}};return n.extend=e.Model.extend,t.extend(n.prototype,{addHandler:function(e,t,n){var r={callback:t,context:n};this._handlers[e]=r},getHandler:function(e){var t=this._handlers[e];if(!t)throw new Error("Handler not found for '"+e+"'");return function(){return t.callback.apply(t.context,arguments)}},removeHandler:function(e){delete this._handlers[e]},removeAllHandlers:function(){this._handlers={}}}),n}(e,n),r.Commands=function(e){return e.Handlers.extend({execute:function(e,t){this.getHandler(e)(t)}})}(r),r.RequestResponse=function(e){return e.Handlers.extend({request:function(e,t){return this.getHandler(e)(t)}})}(r),r.EventAggregator=function(e,t){var n=function(){};return n.extend=e.Model.extend,t.extend(n.prototype,e.Events),n}(e,n),r}(Backbone,Backbone.Marionette,_);
+28
View File
@@ -0,0 +1,28 @@
{
"name": "backbone.wreqr",
"filename": "backbone.wreqr.min.js",
"version": "0.0.0",
"description": "A simple infrastructure for decoupling Backbone and Backbone.Marionette application modules and components.",
"homepage": "http://github.com/marionettejs/backbone.wreqr",
"keywords": [
"events",
"popular"
],
"devDependencies": {
"backbone.js": "0.9.2"
},
"maintainers": [
{
"name": "Derick Bailey",
"email": "derickbailey@gmail.com",
"web": "http://derickbailey.lostechies.com/"
}
],
"repositories": [
{
"type": "git",
"url": "http://github.com/marionettejs/backbone.wreqr"
}
]
}