From 337d5db811fdf81307e8a30e27ee50cafe4e7b5e Mon Sep 17 00:00:00 2001
From: Jeremy Ashkenas
Date: Tue, 12 Oct 2010 17:18:06 -0400
Subject: [PATCH] tiny tweaks
---
index.html | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/index.html b/index.html
index a7041158..7f80d34e 100644
--- a/index.html
+++ b/index.html
@@ -18,7 +18,7 @@
background: #fff;
position: fixed;
top: 0; left: 0; bottom: 0;
- width: 180px;
+ width: 190px;
overflow-y: auto;
overflow-x: hidden;
padding: 15px 0 30px 30px;
@@ -52,7 +52,7 @@
div.container {
position: relative;
width: 550px;
- margin: 40px 0 50px 240px;
+ margin: 40px 0 50px 250px;
}
div.run {
position: absolute;
@@ -169,7 +169,7 @@
- – extend
- - – Underscore Methods (24)
+ - – Underscore Methods (24)
- – add
- – remove
- – get
@@ -211,7 +211,7 @@
Backbone
supplies structure to JavaScript-heavy applications by providing models with
key-value binding and custom events, collections with a rich API of enumerable functions,
- views with declarative event handling, and connects it all to your
+ views with declarative event handling, and connects it all to your
existing application over a RESTful JSON interface.
@@ -451,8 +451,8 @@ alert(JSON.stringify(artist.attributes()));
-Backbone.sync = function(type, model) {
- alert(type + " " + JSON.stringify(model));
+Backbone.sync = function(method, model) {
+ alert(method + ": " + JSON.stringify(model));
};
var book = new Backbone.Model({
@@ -603,7 +603,7 @@ bill.set({name : "Bill Jones"});
diff between versions of a model, or getting back to a valid state after
an error occurs.
-
+
model.toString()
@@ -745,7 +745,7 @@ ships.add([
collection's "refresh" event, unless silenced by passing
{silent: true}
-
+
collection.pluck(attribute)