Skip to content
This repository has been archived by the owner on Jun 26, 2022. It is now read-only.

Commit

Permalink
Release 0.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Oct 23, 2013
1 parent 7bad57d commit 2fbe2ec
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
bower_components/
_site/
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 4 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -24,6 +24,7 @@
"license": "MIT",
"ignore": [
"**/.*",
"lib"
"node_modules",
"bower_components",
"test",
Expand Down
4 changes: 2 additions & 2 deletions component.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 3 additions & 2 deletions exoskeleton.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 2fbe2ec

Please sign in to comment.