Commit Graph

713 Commits

Author SHA1 Message Date
Edil Kratskih
07ba2d5398 Simple refactoring 2012-01-16 13:10:34 +06:00
Edil Kratskih
32b2f28ba9 Cross domain issue patch for old ie browsers (<=7) 2011-12-21 13:18:57 +06: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
Jeremy Ashkenas
6687cde196 merging in #739 -- a massive simplification. 2011-11-23 16:48:39 -05:00
TMaYaD
2d2198c354 Return the jquery object for el when this.$ is called without argument 2011-11-24 02:38:08 +05:30
Jeremy Ashkenas
bc9fbcbefb Merge branch 'set-unset-clear' of https://github.com/braddunbar/backbone 2011-11-23 15:57:24 -05:00
Jeremy Ashkenas
41853416a7 Fixes #674 -- pass options through to validate() 2011-11-23 15:48:55 -05:00
Jeremy Ashkenas
1332246b8f merging in #750 -- support for replaceSTate 2011-11-23 14:59:14 -05:00
Jeremy Ashkenas
30a89ac5cc Merge branch 'replaceState' of https://github.com/lmp/backbone 2011-11-23 14:03:39 -05:00
Jeremy Ashkenas
f5acb6d214 hardlining the sidebar line for Lion. 2011-11-23 13:46:53 -05:00
Jeremy Ashkenas
cfc5b1f3c0 updating copyright dates 2011-11-23 13:43:37 -05:00
Jeremy Ashkenas
7f80359e49 Merge branch 'master' of github.com:documentcloud/backbone 2011-11-23 13:30:32 -05:00
Jeremy Ashkenas
66800f5c8e Upgrading our Underscore.js test dep to 1.2.2 2011-11-23 13:30:07 -05:00
Jeremy Ashkenas
b2cf0dc833 Update index.html 2011-11-22 09:10:44 -05:00
Jeremy Ashkenas
6df607090c Merge pull request #755 from alonsogarciapablo/master
Fix typo in Backbone.Collection documentation
2011-11-22 06:09:27 -08:00
Pablo Alonso García
9cbf87e9c4 Fix typo in Backbone.Collection documentation 2011-11-22 10:54:44 +01:00
Jeremy Ashkenas
fa96a37e2f tweaking link 2011-11-21 12:51:29 -05:00
Jeremy Ashkenas
da9352945c Adding Slavery Footprint as a Backbone.js example app 2011-11-21 12:50:43 -05:00
Jeremy Ashkenas
61246a7cff Adding Grove.io as an example app 2011-11-21 09:32:03 -05:00
Jeremy Ashkenas
4f9cf93c21 adding foursquare as an example app, plus new logo 2011-11-18 09:37:39 -05:00
Aidan Feldman and Tim Harper
df7c279dc2 Navigate learns to change the route without adding a history entry
Also, instead of accepting a single boolean for trigger, the navigate
method now accepts an options object, with the following options:

- replace
- trigger

If you pass true instead of an options object, it's interpreted as
{trigger: true}

* pushState support - Aidan Feldman
* hashtag support and IE7 support - Tim Harper
* Tests were a joint effort.
2011-11-17 15:42:29 -07:00
Brad Dunbar
7658021e98 simpler arg parsing 2011-11-16 14:13:15 -05:00
Jeremy Ashkenas
1d41b4526a merging in the new backbone.js logo 2011-11-14 16:35:09 -05:00
Jeremy Ashkenas
49b532bdf3 removing the ol' upgrading section from the docs. 2011-11-14 15:49:38 -05:00
Jeremy Ashkenas
06e0826150 Adding Do.com as an example app. 2011-11-14 13:50:15 -05:00