Commit Graph

735 Commits

Author SHA1 Message Date
Jeremy Ashkenas
1675e76cb7 Merge branch 'master' of github.com:documentcloud/backbone 2012-01-11 11:56:22 -05:00
Jeremy Ashkenas
df716504cb Documentation request in #599 2012-01-11 11:56:01 -05:00
Jeremy Ashkenas
68d95c82ac Merge pull request #852 from braddunbar/no-bindall
No need to _.bindAll _onModelEvent
2012-01-10 07:18:05 -08:00
Brad Dunbar
61b277937e no need to _.bindAll _onModelEvent 2012-01-10 07:16:53 -05:00
Jeremy Ashkenas
780ddd393c Adding Diaspora as an example app. 2012-01-08 09:55:21 -05:00
Jeremy Ashkenas
1715c181ad Fixes #81 -- optimize for addition of large arrays of models, not for individual inserts. 2012-01-06 15:42:43 -05:00
Jeremy Ashkenas
6b3ff7b035 Fixes #9, Backbone comparators can now be either sort() or sortBy() iterators. 2012-01-06 14:53:43 -05:00
Jeremy Ashkenas
44bb57a217 being a bit stricter about comment wrapping at 80 chars. 2012-01-06 14:13:49 -05:00
Jeremy Ashkenas
060da2b991 Merge pull request #842 from braddunbar/hasChanged-comparison
hasChanged/set should use the same comparison
2012-01-06 06:58:55 -08:00
Brad Dunbar
934aba4c6e hasChanged/set should use the same comparison
When setting a value, if hasChanged and set disagree
about equality then hasChanged will return true without
firing a 'changed:*' event (or vice versa).  Using the
same comparison (_.isEqual) solves this problem.
2012-01-06 09:19:23 -05:00
Jeremy Ashkenas
d06e8a6854 Adding Picplum as an example app 2011-12-30 09:00:02 -05:00
Jeremy Ashkenas
9a56d525b7 streamlining idAttribute documentation. 2011-12-30 08:51:50 -05:00
Tim Branyen
7420342d5c Merge pull request #821 from iros/819.idAttribute
Added idAttribute navigation link to sidebar
2011-12-26 12:15:54 -08:00
Irene Ros
1591c4290d Added navigation link 2011-12-26 15:07:02 -05:00
Tim Branyen
a04c248120 Merge pull request #820 from iros/819.idAttribute
documenting idAttribute
2011-12-26 12:05:17 -08:00
Irene Ros
570156914d #819 documenting idAttribute. Also requested on pull req #210. 2011-12-26 15:00:02 -05:00
Jeremy Ashkenas
4226d58797 Merge branch 'master' of github.com:documentcloud/backbone 2011-12-26 09:35:32 -08:00
Jeremy Ashkenas
ee305c469e Fixes #818 2011-12-26 09:35:11 -08:00
Jeremy Ashkenas
061fd3ba4f Merge pull request #809 from islandr/master
Allow Model.urlRoot to be a function
2011-12-25 22:46:12 -08:00
=
93a39110de Use getValue to interpret urlRoot instead. 2011-12-22 17:19:07 -10:00
=
9374fe5a30 Merge branch 'urlrootasfunction' 2011-12-22 15:27:45 -10:00
=
b4e650b98f A model's urlRoot can now be a function allowing definition at runtime. 2011-12-22 15:23:12 -10:00
Tim Branyen
a9fcd9b3ce Merge pull request #807 from iros/qunit.force.order
Force quint test execution order.
2011-12-22 09:26:17 -08:00
Irene Ros
9d145abfe8 Forcing quint test execution order. 2011-12-22 12:23:50 -05:00
Jeremy Ashkenas
04cb79a528 Merge pull request #805 from fabiomcosta/patch-1
\w still includes \d
2011-12-20 19:33:42 -08:00
Fábio M. Costa
9e80ca1457 \w still includes \d http://www.regular-expressions.info/charclass.html#shorthand 2011-12-21 01:29:50 -02:00
Jeremy Ashkenas
d644a4bc0f Merge pull request #804 from davidmurdoch/patch-1
Optimize regular expressions.
2011-12-20 15:51:27 -08:00
David Murdoch
6ccdbb3a60 Optimize regular expressions. The capture groups aren't needed/used; the character classes will do the job just fine.
Also, normalize the use of quotation-marks (change `"` to `'`' where appropriate).
2011-12-20 18:18:08 -05:00
Jeremy Ashkenas
cda555acc5 Adding Posterous Spaces as an example app 2011-12-20 13:46:53 -05:00
Jeremy Ashkenas
dd83f2057c Fixes #788 2011-12-19 11:20:37 -05:00
Jeremy Ashkenas
c3852b8cd1 unifying property-or-function logic. 2011-12-19 10:54:50 -05:00
Jeremy Ashkenas
d806f7e1f3 fixing commit note bug. 2011-12-16 09:59:06 -05:00
Jeremy Ashkenas
a50b71434b Fixes #792 2011-12-16 09:43:43 -05:00
Jeremy Ashkenas
1400eea12a Fixes #732 2011-12-06 16:39:37 -05:00
Jeremy Ashkenas
1626fa7447 Fixes #734 2011-12-06 16:21:20 -05:00
Jeremy Ashkenas
64d8fd6ca2 merging in ducksboard. 2011-12-06 15:29:45 -05:00
Aitor Guevara Escalante
14dd201574 Add Ducksboard as an example app. 2011-12-05 20:34:15 +01:00
Jeremy Ashkenas
e10525d4d4 Merge pull request #772 from rgieseke/master
Fixes issue 498.
2011-12-05 08:48:49 -08:00
Jeremy Ashkenas
dcc041ab4a Merge pull request #773 from judofyr/model-parse
Collection.reset/add should invoke Model's parse function (with tests)
2011-12-05 07:46:03 -08:00
Magnus Holm
67f689df9c Col.fetch() should create models with parse:true:
This is done in two steps:

1. Col.fetch() now defaults to parse:true
2. Col.reset() and _prepareModel now passes along
   parse:true.

This means that Col.add() also accepts the
parse:true option.
2011-12-04 18:27:36 +01:00
Magnus Holm
bdbcfa9da2 parse:true runs the attributes through parse():
`new Model(attr, {parse:true})` will now call
Model.prototype.parse(attr). This is useful if
you want to create a model out of an object
structure from an external server.
2011-12-04 17:48:47 +01:00
Robert Gieseke
fd78dbf14e Only remove single '#' when getting URL fragment.
Firefox has a bug that auto-decodes the hash fragment
(https://bugzilla.mozilla.org/show_bug.cgi?id=483304), which makes
it impossible to have a hash like '#%23backbone.js'.
2011-12-04 14:31:01 +01:00
Jeremy Ashkenas
8adac9136c Merge pull request #769 from lmp/master
Bugfix: replace hash should not append hash mark to javascript:0
2011-11-30 16:00:13 -08:00
Tim Harper
1a06f9a215 Bugfix: replace hash should not append hash mark to javascript:0
It's invalid to do so. Instead it should replace the entire URL,
javascript:0 included.

This gets rid of a javascript error that was emitted in IE7 every time
navigate was used with replace: true
2011-11-30 13:33:40 -07:00
Jeremy Ashkenas
e8c1ce7158 Merge pull request #761 from d2s/master
Update two links at index.html to latest URLs
2011-11-24 10:50:19 -08:00
Daniel Schildt
db8d85e26b Update two links at index.html to latest URLs
- Link to Jake was broken.
- PhantomJS has official website with better information.
2011-11-24 18:23:48 +02:00
Jeremy Ashkenas
c785ecb15a Merge pull request #759 from lmp/master
Update remaining call to _updateLocationHash to _updateHash
2011-11-23 14:35:37 -08:00
Jeremy Ashkenas
9fc7443d34 merging in #758 -- although the API leaves something to be desired. 2011-11-23 17:32:04 -05:00
Tim Harper
42ee70e9d9 Update remaining call to _updateLocationHash to _updateHash
(Finish refactoring job from 1332246b8f)
2011-11-23 15:31:58 -07:00
Jeremy Ashkenas
43c815aedb Merge branch 'master' of https://github.com/TMaYaD/backbone 2011-11-23 17:03:44 -05:00