Permalink
...
Comparing changes
Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a Base Repository
jashkenas/backbone
Avalon/backbone
Backcountry/backbone
HTML5-Spain/backbone
JasonGiedymin/backbone
JesseQin/backbone
Nerian/backbone-Spark
RodH257/backbone
Rosencrantz/backbone
ScxFiction/backbone
Smarsh/backbone
SponsorPay/backbone
StevenBlack/backbone
SumitMunot/backbone
Whoaa512/backbone-livescript
ZeeAgency/backbone
addyosmani/backbone
afeld/backbone
aflatter/backbone
airhorns/backbone
aitorciki/backbone
aixeiger/backbone
alexgenovese/backbone
amdjs/backbone
antoniogarrote/backbone
asan/backbone
autohaus24/backbone
azethoth/backbone
bROthersRockers/backbone
balwantk/backbone
benchow/backbone
bfirsh/backbone
bgrins/backbone
boazsender/backbone
braddunbar/backbone
bsingr/backbone
campfirelabs/backbone
cawinkelmann/backbone
centraldesktop/backbone
charles-cai/backbone
chetan51/backbone
chrismgrant/backbone
cmonty/backbone
code-ninja/backbone
collin/backbone
corbanbrook/backbone
cureatr/backbone
dalyons/backbone
danigb/backbone
danmascena/backbone
datapimp/backbone
dcneiner/backbone
deleteme/backbone
derickbailey/backbone
devilankur18/backbone
devinhunt/backbone
djadriano/backbone
djia/backbone
djmitche/backbone
doomhz/backbone
dperrymorrow/backbone
dreverri/backbone
drewlesueur/backbone
dshaw/backbone
durdn/backbone
ecocity/backbone
ef4/backbone
enki/backbone
epall/backbone
erawk/backbone
excellentdrums/backbone
extelligence/backbone
fabrik42/backbone
ferbs/backbone
fernandogmar/backbone
fitzgen/backbone
fmaulanaa/backbone
fr1n63/backbone
fractastical/backbone
frankk00/backbone
g6scheme/backbone
gaboom/backbone
garza/backbone
gaustin/backbone-mootools
geddski/backbone
getbpm/backbone
gfranko/backbone
gmccreight/backbone
gsamokovarov/backbone
habuma/backbone
halfbaked/backbone
haoranw/backbone
hlissnake/backbone
hokaccha/backbone
hshoff/backbone
hugohua/backbone
hunterloftis/backbone
ian7/backbone
ianstormtaylor/backbone
jamesyu/backbone
janmonschke/backbone
japetheape/backbone
jcoglan/backbone
jduff/backbone
jentanbernardus/backbone
jeromegn/backbone
jhollingworth/backbone
jhuckabee/backbone
jimmytang/backbone
jo/backbone
jordandobson/backbone
jordanfowler/backbone
jroes/backbone
jstrimpel/backbone
jtescher/backbone
juggy/backbone
keithamus/backbone
krunkosaurus/backbone
kurtharriger/backbone
leeight/backbone
lmorchard/backbone
lmp/backbone
loginx/backbone
lorensr/backbone
luca/backbone
lucianlature/backbone
maccman/backbone
mataspetrikas/backbone
maw/backbone
mbriggs/backbone
mikerice/backbone
mohamedmansour/backbone
morganrallen/backbone
mostly-magic/backbone
n4niks/backbone
nanqiu/backbone
nealstewart/backbone
netmau5/backbone
nguyennamtien/backbone
nibblebot/backbone
nickjs/backbone
nikgraf/backbone
nsb/backbone
olleolleolle/backbone
omnifroodle/backbone
onycloud/backbone
pbombo/backbone-mootools
phamann/backbone
pirelenito/backbone
pkananen/backbone
r00k/backbone
raysrashmi/backbone
reconbot/backbone
rsandor/backbone
rsim/backbone
saimonmoore/backbone
scottopherson/backbone
shalstvedt/backbone
shehuaqigai/backbone
shiftb/backbone
sitron/backbone
solutionio/backbone
sstephenson/backbone
steel/backbone
stephank/backbone
strax/backbone
swalke16/backbone
tapichu/backbone
tauren/backbone
taybenlor/backbone-on-coffee
tbranyen/backbone
tessekkur/backbone
thisduck/backbone
timesselens/backbone
timheap/mootools-backbone
timruffles/backbone
tlray/backbone
toastdriven/backbone
tobie/backbone
tobowers/backbone
tomasztunik/backbone
tomokane/backbone
tonydewan/backbone
tosh/backbone
trcarden/backbone
tzuryby/backbone
ulmus/backbone
vincentbriglia/backbone
vsaar/backbone
wallin/backbone
walmartlabs/backbone
webmat/backbone
webspinner/backbone
wesen/backbone
willmoffat/backbone
wowsoso/backbone
wuzhe/backbone
zackchandler/backbone
zhj3618/backbone
zzurang/backbone
Nothing to show
Choose a Head Repository
jashkenas/backbone
Avalon/backbone
Backcountry/backbone
HTML5-Spain/backbone
JasonGiedymin/backbone
JesseQin/backbone
Nerian/backbone-Spark
RodH257/backbone
Rosencrantz/backbone
ScxFiction/backbone
Smarsh/backbone
SponsorPay/backbone
StevenBlack/backbone
SumitMunot/backbone
Whoaa512/backbone-livescript
ZeeAgency/backbone
addyosmani/backbone
afeld/backbone
aflatter/backbone
airhorns/backbone
aitorciki/backbone
aixeiger/backbone
alexgenovese/backbone
amdjs/backbone
antoniogarrote/backbone
asan/backbone
autohaus24/backbone
azethoth/backbone
bROthersRockers/backbone
balwantk/backbone
benchow/backbone
bfirsh/backbone
bgrins/backbone
boazsender/backbone
braddunbar/backbone
bsingr/backbone
campfirelabs/backbone
cawinkelmann/backbone
centraldesktop/backbone
charles-cai/backbone
chetan51/backbone
chrismgrant/backbone
cmonty/backbone
code-ninja/backbone
collin/backbone
corbanbrook/backbone
cureatr/backbone
dalyons/backbone
danigb/backbone
danmascena/backbone
datapimp/backbone
dcneiner/backbone
deleteme/backbone
derickbailey/backbone
devilankur18/backbone
devinhunt/backbone
djadriano/backbone
djia/backbone
djmitche/backbone
doomhz/backbone
dperrymorrow/backbone
dreverri/backbone
drewlesueur/backbone
dshaw/backbone
durdn/backbone
ecocity/backbone
ef4/backbone
enki/backbone
epall/backbone
erawk/backbone
excellentdrums/backbone
extelligence/backbone
fabrik42/backbone
ferbs/backbone
fernandogmar/backbone
fitzgen/backbone
fmaulanaa/backbone
fr1n63/backbone
fractastical/backbone
frankk00/backbone
g6scheme/backbone
gaboom/backbone
garza/backbone
gaustin/backbone-mootools
geddski/backbone
getbpm/backbone
gfranko/backbone
gmccreight/backbone
gsamokovarov/backbone
habuma/backbone
halfbaked/backbone
haoranw/backbone
hlissnake/backbone
hokaccha/backbone
hshoff/backbone
hugohua/backbone
hunterloftis/backbone
ian7/backbone
ianstormtaylor/backbone
jamesyu/backbone
janmonschke/backbone
japetheape/backbone
jcoglan/backbone
jduff/backbone
jentanbernardus/backbone
jeromegn/backbone
jhollingworth/backbone
jhuckabee/backbone
jimmytang/backbone
jo/backbone
jordandobson/backbone
jordanfowler/backbone
jroes/backbone
jstrimpel/backbone
jtescher/backbone
juggy/backbone
keithamus/backbone
krunkosaurus/backbone
kurtharriger/backbone
leeight/backbone
lmorchard/backbone
lmp/backbone
loginx/backbone
lorensr/backbone
luca/backbone
lucianlature/backbone
maccman/backbone
mataspetrikas/backbone
maw/backbone
mbriggs/backbone
mikerice/backbone
mohamedmansour/backbone
morganrallen/backbone
mostly-magic/backbone
n4niks/backbone
nanqiu/backbone
nealstewart/backbone
netmau5/backbone
nguyennamtien/backbone
nibblebot/backbone
nickjs/backbone
nikgraf/backbone
nsb/backbone
olleolleolle/backbone
omnifroodle/backbone
onycloud/backbone
pbombo/backbone-mootools
phamann/backbone
pirelenito/backbone
pkananen/backbone
r00k/backbone
raysrashmi/backbone
reconbot/backbone
rsandor/backbone
rsim/backbone
saimonmoore/backbone
scottopherson/backbone
shalstvedt/backbone
shehuaqigai/backbone
shiftb/backbone
sitron/backbone
solutionio/backbone
sstephenson/backbone
steel/backbone
stephank/backbone
strax/backbone
swalke16/backbone
tapichu/backbone
tauren/backbone
taybenlor/backbone-on-coffee
tbranyen/backbone
tessekkur/backbone
thisduck/backbone
timesselens/backbone
timheap/mootools-backbone
timruffles/backbone
tlray/backbone
toastdriven/backbone
tobie/backbone
tobowers/backbone
tomasztunik/backbone
tomokane/backbone
tonydewan/backbone
tosh/backbone
trcarden/backbone
tzuryby/backbone
ulmus/backbone
vincentbriglia/backbone
vsaar/backbone
wallin/backbone
walmartlabs/backbone
webmat/backbone
webspinner/backbone
wesen/backbone
willmoffat/backbone
wowsoso/backbone
wuzhe/backbone
zackchandler/backbone
zhj3618/backbone
zzurang/backbone
Nothing to show
7
contributors
Commits on Jul 22, 2011
|
|
jcoglan |
Remove coupling from model to view in example app by listening to mod…
…el's 'destroy' event to remove the view. |
f77033d
|
Commits on Jul 26, 2011
|
|
shesek |
Setting to context to `this` by default on bind() instead of trigger()
|
39b36af
|
|||
|
|
jashkenas |
Merge pull request #507 from shesek/patch-4
Set default context for events on bind() |
fb60bf5
|
|||
|
|
jashkenas |
whitespace
|
22456de
|
Commits on Jul 27, 2011
|
|
devinhunt |
Ajax.processData is left as the default if emulateJSON is set to true
|
b85c116
|
|||
|
|
jashkenas |
Adding Pandora and Blossom as backbone examples.
|
e148948
|
|||
|
|
jashkenas |
Merge branch 'master' of github.com:documentcloud/backbone
|
7bfc9b8
|
|||
|
|
jashkenas |
Adding Hotel Tonight as a Backbone example.
|
f7c23e4
|
|||
|
|
jashkenas |
Merge pull request #509 from devinhunt/master
Patch for emulateJSON sync. Forced processData setting breaks Backbone.emaulteJSON mode. |
ebf9dd9
|
Commits on Jul 29, 2011
Commits on Aug 02, 2011
|
|
jashkenas |
Adding Americas Test Kitchen + Talking Points Memo's Baroque as examp…
…le apps |
59dc74c
|
|||
|
|
jashkenas |
copy edits on the previous commit
|
55bbbd4
|
Commits on Aug 03, 2011
Commits on Aug 04, 2011
|
|
asan |
Added 'groupBy' to underscore proxy methods
|
3b68648
|
|||
|
|
jashkenas |
Merge pull request #537 from asan/master
Add 'groupBy' proxy for underscore 1.1.7 groupBy |
a1acb09
|
Commits on Aug 07, 2011
|
|
tbranyen |
allow history start to not call initial route
|
b1574b1
|
Commits on Aug 08, 2011
|
|
jashkenas |
Merge pull request #541 from tbranyen/silent-start
Silent start |
8fe04a9
|
Commits on Aug 09, 2011
|
|
jashkenas |
patching a pernicious pushstate problem.
|
44629da
|
|||
|
|
jashkenas |
Backbone.js 0.5.3
|
29b60e5
|
Unified
Split
Showing
with
280 additions
and 86 deletions.
- +11 −7 backbone.js
- +11 −7 docs/backbone.html
- BIN docs/images/baroque.jpg
- BIN docs/images/blossom.png
- BIN docs/images/groupon.png
- BIN docs/images/hotel-tonight.png
- BIN docs/images/pandora.png
- BIN docs/images/test-kitchen.png
- +29 −32 docs/todos.html
- +3 −9 examples/todos/todos.js
- +223 −28 index.html
- +1 −1 package.json
- +2 −2 test/view.js
View
18
backbone.js
| @@ -1,4 +1,4 @@ | ||
| -// Backbone.js 0.5.2 | ||
| +// Backbone.js 0.5.3 | ||
| // (c) 2010 Jeremy Ashkenas, DocumentCloud Inc. | ||
| // Backbone may be freely distributed under the MIT license. | ||
| // For all details and documentation: | ||
| @@ -25,7 +25,7 @@ | ||
| } | ||
| // Current version of the library. Keep in sync with `package.json`. | ||
| - Backbone.VERSION = '0.5.2'; | ||
| + Backbone.VERSION = '0.5.3'; | ||
| // Require Underscore, if we're on the server, and it's not already present. | ||
| var _ = root._; | ||
| @@ -41,7 +41,7 @@ | ||
| return this; | ||
| }; | ||
| - // Turn on `emulateHTTP` to use support legacy HTTP servers. Setting this option will | ||
| + // Turn on `emulateHTTP` to support legacy HTTP servers. Setting this option will | ||
| // fake `"PUT"` and `"DELETE"` requests via the `_method` parameter and set a | ||
| // `X-Http-Method-Override` header. | ||
| Backbone.emulateHTTP = false; | ||
| @@ -641,7 +641,7 @@ | ||
| var methods = ['forEach', 'each', 'map', 'reduce', 'reduceRight', 'find', 'detect', | ||
| 'filter', 'select', 'reject', 'every', 'all', 'some', 'any', 'include', | ||
| 'contains', 'invoke', 'max', 'min', 'sortBy', 'sortedIndex', 'toArray', 'size', | ||
| - 'first', 'rest', 'last', 'without', 'indexOf', 'lastIndexOf', 'isEmpty']; | ||
| + 'first', 'rest', 'last', 'without', 'indexOf', 'lastIndexOf', 'isEmpty', 'groupBy']; | ||
| // Mix in each Underscore method as a proxy to `Collection#models`. | ||
| _.each(methods, function(method) { | ||
| @@ -766,7 +766,7 @@ | ||
| fragment = window.location.hash; | ||
| } | ||
| } | ||
| - return fragment.replace(hashStrip, ''); | ||
| + return decodeURIComponent(fragment.replace(hashStrip, '')); | ||
| }, | ||
| // Start the hash change handling, returning `true` if the current URL matches | ||
| @@ -812,7 +812,10 @@ | ||
| this.fragment = loc.hash.replace(hashStrip, ''); | ||
| window.history.replaceState({}, document.title, loc.protocol + '//' + loc.host + this.options.root + this.fragment); | ||
| } | ||
| - return this.loadUrl(); | ||
| + | ||
| + if (!this.options.silent) { | ||
| + return this.loadUrl(); | ||
| + } | ||
| }, | ||
| // Add a route to be tested when the fragment changes. Routes added later may | ||
| @@ -949,6 +952,7 @@ | ||
| // not `change`, `submit`, and `reset` in Internet Explorer. | ||
| delegateEvents : function(events) { | ||
| if (!(events || (events = this.events))) return; | ||
| + if (_.isFunction(events)) events = events.call(this); | ||
| $(this.el).unbind('.delegateEvents' + this.cid); | ||
| for (var key in events) { | ||
| var method = this[events[key]]; | ||
| @@ -1070,7 +1074,7 @@ | ||
| } | ||
| // Don't process data on a non-GET request. | ||
| - if (params.type !== 'GET') { | ||
| + if (params.type !== 'GET' && !Backbone.emulateJSON) { | ||
| params.processData = false; | ||
| } | ||
View
18
docs/backbone.html
Oops, something went wrong.
View
BIN
docs/images/baroque.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN
docs/images/blossom.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN
docs/images/groupon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN
docs/images/hotel-tonight.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN
docs/images/pandora.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN
docs/images/test-kitchen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
61
docs/todos.html
Oops, something went wrong.
View
12
examples/todos/todos.js
| @@ -28,12 +28,6 @@ $(function(){ | ||
| // Toggle the `done` state of this todo item. | ||
| toggle: function() { | ||
| this.save({done: !this.get("done")}); | ||
| - }, | ||
| - | ||
| - // Remove this Todo from *localStorage* and delete its view. | ||
| - clear: function() { | ||
| - this.destroy(); | ||
| - this.view.remove(); | ||
| } | ||
| }); | ||
| @@ -103,7 +97,7 @@ $(function(){ | ||
| // app, we set a direct reference on the model for convenience. | ||
| initialize: function() { | ||
| this.model.bind('change', this.render, this); | ||
| - this.model.view = this; | ||
| + this.model.bind('destroy', this.remove, this); | ||
| }, | ||
| // Re-render the contents of the todo item. | ||
| @@ -152,7 +146,7 @@ $(function(){ | ||
| // Remove the item, destroy the model. | ||
| clear: function() { | ||
| - this.model.clear(); | ||
| + this.model.destroy(); | ||
| } | ||
| }); | ||
| @@ -231,7 +225,7 @@ $(function(){ | ||
| // Clear all done todo items, destroying their models. | ||
| clearCompleted: function() { | ||
| - _.each(Todos.done(), function(todo){ todo.clear(); }); | ||
| + _.each(Todos.done(), function(todo){ todo.destroy(); }); | ||
| return false; | ||
| }, | ||
Oops, something went wrong.
Showing you all comments on commits in this comparison.
|
I've got AdobeTV Mobile and Panera Bread's Mobile site to add as examples. Could we have those listed too? Should I send a pull request or email? Thanks! |
|
backbone/test/test.html is failing with (presumably) infinite recursion. Git bisect indicates this commit is the culprit. Failure in Chrome 12:
Similar failure in Firefox 5.0.1 |
|
Reverting commit 39b36af does fix the test. |