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

Commit

Permalink
Release 0.5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Nov 3, 2013
1 parent 8e814e2 commit 29a406f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Exoskeleton 0.5.1 (3 November 2013)
* Added support for `contentType` option in `utils.ajax`

# Exoskeleton 0.5.0 (2 November 2013)
* Fixed behaviour in node.js environment.
* `Backbone.Deferred` now must return actual `Deferred`
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "exoskeleton",
"main": "exoskeleton.js",
"version": "0.5.0",
"version": "0.5.1",
"homepage": "https://github.com/paulmillr/exoskeleton",
"author": "Paul Miller (http://paulmillr.com)",
"description": "Faster and leaner Backbone for your HTML5 apps.",
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "exoskeleton",
"repo": "paulmillr/exoskeleton",
"description": "Faster and leaner Backbone for your HTML5 apps.",
"version": "0.5.0",
"version": "0.5.1",
"keywords": [
"Backbone",
"Exoskeleton",
Expand Down
8 changes: 6 additions & 2 deletions exoskeleton.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Exoskeleton.js 0.5.0
* Exoskeleton.js 0.5.1
* (c) 2013 Paul Miller <http://paulmillr.com>
* Based on Backbone.js
* (c) 2010-2013 Jeremy Ashkenas, DocumentCloud
Expand Down Expand Up @@ -369,6 +369,10 @@ utils.ajax = (function() {
var xhr = new XMLHttpRequest();
var deferred = Backbone.Deferred && Backbone.Deferred();

if (options.contentType) {
if (options.headers == null) options.headers = {};
options.headers['Content-Type'] = options.contentType;
}
if (options.credentials) options.withCredentials = true;
xhr.addEventListener('readystatechange', end(xhr, options, deferred));
xhr.open(options.type, options.url, true);
Expand Down Expand Up @@ -434,7 +438,7 @@ var Events = Backbone.Events = {
if (!this._events || !eventsApi(this, 'off', name, [callback, context]))
return this;
if (!name && !callback && !context) {
delete this._events;
this._events = undefined;

This comment has been minimized.

Copy link
@akre54

akre54 Nov 3, 2013

Contributor

👍

return this;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Exoskeleton.js 0.5.0
* Exoskeleton.js 0.5.1
* (c) 2013 Paul Miller <http://paulmillr.com>
* Based on Backbone.js
* (c) 2010-2013 Jeremy Ashkenas, DocumentCloud
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "exoskeleton",
"version": "0.5.0",
"version": "0.5.1",
"description": "Faster and leaner Backbone for your HTML5 apps.",
"main": "exoskeleton.js",
"directories": {
Expand Down

0 comments on commit 29a406f

Please sign in to comment.