Permalink
Browse files

Update to Backbone 1.0, Underscore 1.4

- Remove use of #make from Backbone view tests as it was deprecated
- Update jQuery to 1.7 to gain access to #on
- Update README and CHANGELOG to specify included versions
- Bump version
  • Loading branch information...
1 parent 5426a1a commit 74fc6142b94490fc028ff198e1c99278b27445f8 @christoomey christoomey committed Apr 28, 2013
View
@@ -1,3 +1,8 @@
+0.4.0 (May 10, 2013)
+
+- Update included Backbone to version 1.0
+- Update Underscore to 1.4.4 to satisfy Backbone 1.0
+
0.3.2 (April 27, 2013)
- Backbone support now includes a vendored version of Backbone and Underscore
View
@@ -1,6 +1,4 @@
-# Backbone Support
-
-[![Build Status](https://travis-ci.org/thoughtbot/backbone-support.png?branch=master)](https://travis-ci.org/thoughtbot/backbone-support)
+# Backbone Support [![Build Status](https://travis-ci.org/thoughtbot/backbone-support.png?branch=master)](https://travis-ci.org/thoughtbot/backbone-support) [![Gem Version](https://badge.fury.io/rb/backbone-support.png)](https://rubygems.org/gems/backbone-support)
Backbone Support provides a collection of utility classes for use with
[Backbone.js][]. There's no built-in garbage collection for Backbone’s event
@@ -81,6 +79,11 @@ For child views that can dismiss themselves, such as dialog boxes, children
maintain a back-reference at `this.parent`. This is used to reach up and call
`this.parent.removeChild(this)` for these self-dismissing views.
+## Compatibility
+
+Backbone Support is compatible with Backbone v0.5.3 and higher, including
+Backbone v1.0 (as of Backbone Support v0.4.0).
+
## Dependencies
Backbone Support requires the following libraries:
@@ -94,7 +97,10 @@ Backbone Support requires the following libraries:
For convenience, Backbone Support comes with a vendored copy of Backbone and
Underscore to get you up and running as quickly as possible. If you want to
use these included files, simply follow the instructions below in the
-[Installation][] section.
+[Installation][] section. The current vendored versions are:
+
+- Backbone v1.0.0
+- Underscore v1.4.4
### Alternate Versions
@@ -1,2 +1,2 @@
window.Support = {};
-Support.VERSION = "0.3.2";
+Support.VERSION = "0.4.0";
@@ -1,3 +1,3 @@
module BackboneSupport
- VERSION = '0.3.2'.freeze
+ VERSION = '0.4.0'.freeze
end
@@ -1,7 +1,7 @@
describe("Support.CompositeView", function() {
var orangeView = Support.CompositeView.extend({
render: function() {
- var text = this.make("span", {}, "Orange!");
+ var text = $("<span>").html("Orange!");
$(this.el).append(text);
}
});
@@ -13,7 +13,7 @@ describe("Support.CompositeView", function() {
var normalView = Backbone.View.extend({
render: function() {
- var text = this.make("span", {}, "Normal!");
+ var text = $("<span>").html("Normal!");
$(this.el).append(text);
}
});
@@ -2,7 +2,7 @@ describe('Support.Observer', function() {
var normalView = Support.CompositeView.extend({
render: function() {
- var text = this.make("span", {}, "Normal!");
+ var text = $("<span>").html("Normal!");
$(this.el).append(text);
},
leave: function() {
Oops, something went wrong.

0 comments on commit 74fc614

Please sign in to comment.