From 2fbe2ec7b720a3835d390ff1cbdf88be8f356afb Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Thu, 24 Oct 2013 02:12:41 +0300 Subject: [PATCH] Release 0.3.0. --- .gitignore | 1 + CHANGELOG.md | 5 +++++ LICENSE | 2 +- bower.json | 7 ++++--- component.json | 4 ++-- exoskeleton.js | 5 +++-- 6 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index fbe05fc..028635c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ bower_components/ +_site/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 22516df..676b9f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# Exoskeleton 0.3.0 (24 October 2013) +* Declaratively defined view events which point to + non-existing handler functions are no longer tolerated / skipped. + Early error is thrown instead. + # Exoskeleton 0.2.2 (21 October 2013) * All Chaplin tests are now passing. * Added `utils.matchesSelector`. diff --git a/LICENSE b/LICENSE index 70ecaad..f016bde 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013 Paul Miller +Copyright (c) 2013 Paul Miller (http://paulmillr.com) Copyright (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of diff --git a/bower.json b/bower.json index e528462..f937ffd 100644 --- a/bower.json +++ b/bower.json @@ -1,10 +1,10 @@ { "name": "exoskeleton", "main": "exoskeleton.js", - "version": "0.2.2", - "homepage": "https://github.com/paulmillr/exoskeletons", + "version": "0.3.0", + "homepage": "https://github.com/paulmillr/exoskeleton", "author": "Paul Miller (http://paulmillr.com)", - "description": "Faster and leaner Backbone.js drop-in replacement.", + "description": "Faster and leaner Backbone for your HTML5 apps.", "keywords": [ "Backbone", "Exoskeleton", @@ -24,6 +24,7 @@ "license": "MIT", "ignore": [ "**/.*", + "lib" "node_modules", "bower_components", "test", diff --git a/component.json b/component.json index ff4369f..8cc49af 100644 --- a/component.json +++ b/component.json @@ -1,8 +1,8 @@ { "name": "exoskeleton", "repo": "paulmillr/exoskeleton", - "description": "Faster and leaner Backbone.js drop-in replacement.", - "version": "0.2.2", + "description": "Faster and leaner Backbone for your HTML5 apps.", + "version": "0.3.0", "keywords": [ "Backbone", "Exoskeleton", diff --git a/exoskeleton.js b/exoskeleton.js index 43e58e1..6525441 100644 --- a/exoskeleton.js +++ b/exoskeleton.js @@ -861,7 +861,7 @@ _.extend(Collection.prototype, Events, { // The default model for a collection is just a **Backbone.Model**. // This should be overridden in most cases. - model: Model, + model: typeof Model === 'undefined' ? null : Model, // Initialize is an empty function by default. Override it with your own // initialization logic. @@ -1157,7 +1157,7 @@ _.extend(Collection.prototype, Events, { // Prepare a hash of attributes (or other model) to be added to this // collection. _prepareModel: function(attrs, options) { - if (attrs instanceof Model) { + if (attrs instanceof Collection.prototype.model) { if (!attrs.collection) attrs.collection = this; return attrs; } @@ -1356,6 +1356,7 @@ _.extend(View.prototype, Events, { // } for (var el = event.target; el && el !== root; el = el.parentNode) { if (utils.matchesSelector(el, selector)) { + // event.currentTarget or event.target are read-only. event.delegateTarget = el; return bound(event); }