From 9f9028bfab12a2ea7187d0f3840de97108d64951 Mon Sep 17 00:00:00 2001 From: Brad Dunbar Date: Sat, 16 Jun 2012 11:53:21 -0400 Subject: [PATCH] Add documentation for Model#sync, Collection#sync. --- index.html | 56 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 20 deletions(-) diff --git a/index.html b/index.html index e2d37457..4b7aa471 100644 --- a/index.html +++ b/index.html @@ -295,6 +295,7 @@
  • changed
  • defaults
  • toJSON
  • +
  • sync
  • fetch
  • save
  • destroy
  • @@ -321,6 +322,7 @@
  • constructor / initialize
  • models
  • toJSON
  • +
  • sync
  • Underscore Methods (28)
  • add
  • remove
  • @@ -1016,6 +1018,13 @@ artist.set({birthday: "December 16, 1866"}); alert(JSON.stringify(artist)); +

    + syncmodel.sync(method, model, [options]) +
    + Uses Backbone.sync to persist the state of a model to + the server. Can be overridden for custom behavior. +

    +

    fetchmodel.fetch([options])
    @@ -1407,6 +1416,13 @@ var collection = new Backbone.Collection([ alert(JSON.stringify(collection)); +

    + synccollection.sync(method, collection, [options]) +
    + Uses Backbone.sync to persist the state of a + collection to the server. Can be overridden for custom behavior. +

    +

    Underscore Methods (28)
    @@ -2881,22 +2897,22 @@ var model = localBackbone.Model.extend(...); Pandora - +

    Inkling

    - Inkling is a truly - cross-platform way to publish interactive learning content.
    - Inkling for Web uses Backbone.js - to make hundreds of complex books — from textbooks to travel guides — more - engaging on the web. Beyond your average EPUB eReader, Inkling supports - WebGL-enabled 3D graphics, interactive assessments, seamless social sharing, - and even a music player, all within a single page Backbone-driven app. - Early on, the team decided to keep the site lightweight by using only - Backbone.js and raw JavaScript. The result? Complete source code weighing - in at a mere 350kb with feature-parity across the iPad, iPhone and web - clients. The - free chapter + Inkling is a truly + cross-platform way to publish interactive learning content.
    + Inkling for Web uses Backbone.js + to make hundreds of complex books — from textbooks to travel guides — more + engaging on the web. Beyond your average EPUB eReader, Inkling supports + WebGL-enabled 3D graphics, interactive assessments, seamless social sharing, + and even a music player, all within a single page Backbone-driven app. + Early on, the team decided to keep the site lightweight by using only + Backbone.js and raw JavaScript. The result? Complete source code weighing + in at a mere 350kb with feature-parity across the iPad, iPhone and web + clients. The + free chapter in every book makes it easy for anyone to try it out and take a look.

    @@ -2960,16 +2976,16 @@ var model = localBackbone.Model.extend(...); SeatGeek - +

    Easel

    - Easel is an in-browser, high fidelity web - design tool that integrates with your design and development - process. The Easel team uses CoffeeScript, Underscore.js and Backbone.js for - their rich visual editor as well as other - management functions throughout the site. The structure of Backbone allowed - the team to break the complex problem of building a visual editor into + Easel is an in-browser, high fidelity web + design tool that integrates with your design and development + process. The Easel team uses CoffeeScript, Underscore.js and Backbone.js for + their rich visual editor as well as other + management functions throughout the site. The structure of Backbone allowed + the team to break the complex problem of building a visual editor into manageable components and still move quickly.