Jeremy Ashkenas
53f77901a4
Backbone 1.1.2
2014-02-20 16:34:01 -05:00
Jeremy Ashkenas
01f7f9b4c7
fixes #3004 , edge case for titanium
2014-02-20 16:26:27 -05:00
Brad Dunbar
5b49aae75f
Handle newlines in route params.
2014-02-20 05:53:34 -05:00
Jeremy Ashkenas
f1479e62eb
Fixes #2997 — don't bother trying to load jQuery on the server-side.
2014-02-14 17:39:07 -05:00
Jeremy Ashkenas
6ccc1583e7
Backbone.js 1.1.1
2014-02-13 14:57:41 -05:00
Casey Foster
990ab04a45
Fix #2976 Do not add multiple models with same id
2014-02-03 13:19:27 -06:00
Brad Dunbar
1f5340b36a
Merge branch 'branch-1.1.0' of https://github.com/skyhood/backbone
...
Conflicts:
backbone.js
2014-01-14 16:30:15 -05:00
Elisa Oinonen
2e3eed8d95
decode location.pathname
2014-01-09 15:47:39 +02:00
brad dunbar
d6ac995c9f
Merge pull request #2890 from braddunbar/search-params
...
Search params
2014-01-06 14:21:47 -08:00
Tim Griesser
8c10b4cedb
Minor code tweaks to pass linting
2014-01-05 09:53:23 -05:00
Tim Griesser
d381ee92fd
Move delete back to model.remove
...
Reverts part of #2838 to prevent unexpected
behavior in collection/model remove events.
2013-12-18 12:06:36 -05:00
Brad Dunbar
2599c52e71
Simplify Model#url, split long line.
2013-12-10 17:45:28 -05:00
Jeremy Ashkenas
dc779e2182
Tweaking #2905 -- long line styles.
2013-12-03 08:22:18 -08:00
Brad Dunbar
b966c94a38
Split up long lines for style and readability.
2013-12-03 11:06:00 -05:00
Brad Dunbar
791033dc1a
Add Router#execute hook.
2013-11-25 13:20:41 -05:00
Brad Dunbar
066acdc7ed
Search params.
2013-11-23 13:12:01 -05:00
Ryan Mohr
814d36205c
Added query string parsing support for pushState with hashChange
...
Also includes rename of Backbone.qs to
Backbone.History.parseQueryString.
2013-11-22 10:19:50 -10:00
Ryan Mohr
05b1df09ca
Fragment now includes query string and hash for pushState.
...
Hash is only included when wantsHashChange.
2013-11-22 10:13:15 -10:00
Ryan Mohr
ddbdd0660c
Removed fragment stripper. Changes to query params will trigger route change.
2013-11-21 14:04:03 -10:00
Ryan Mohr
6fb8e7af33
Query string now parsed if Backbone.qs defined
2013-11-21 14:03:56 -10:00
Ryan Mohr
a50317b511
All routes can now optionally be queried.
...
The raw query string will be passed as last argument.
2013-11-21 14:03:49 -10:00
Adam Krebs
9436340725
remove shadowed _. Use only the UMD loader for deps
2013-11-21 10:42:57 -05:00
Blake Embrey
6dcec29831
Make isNew use the has functionality to avoid forcing multiple odd overrides.
2013-11-14 23:07:19 -05:00
Jeremy Ashkenas
9280d855e3
Fixes #2824 — create() triggering an improper parse()
2013-11-09 10:57:48 -03:00
Jeremy Ashkenas
888959f2ba
Merge branch 'master' of https://github.com/jashkenas/backbone
2013-11-07 12:56:54 -03:00
Jeremy Ashkenas
d1de6e8911
Fixes #2836 -- default to id if there's funny business going on with a missing idAttribute
2013-11-07 12:56:50 -03:00
Adam Krebs
5cafd2a6d7
Add jQuery as a commonjs import
2013-11-07 09:55:38 -05:00
Paul Miller
1a2d3f277d
Improve events performance in some cases by 20x.
...
Things like [Chaplin](http://chaplinjs.org ) are using advanced memory management heavily. This includes unbinding of all events too.
Events are getting unbound all the time. When other objects may still try to trigger events, this will increase performance by 20x.
Initially taken from [my Backbone optional-dependencies fork](http://exosjs.com ).
Proof of 20x speed: http://jsperf.com/exoskeleton-events-vs-backbone-events
2013-11-07 15:13:28 +02:00
Jeremy Ashkenas
ab5d2eb4c6
Adding AMD support to Backbone.
2013-11-07 09:18:59 -03:00
jrburke
ea29bd9119
UMD wrapper for AMD, node and browser globals.
2013-11-06 16:25:24 -08:00
Casey Foster
47331efca8
Fix #2846 nested "change" events trigger with correct options
2013-11-06 14:38:41 -06:00
Casey Foster
01d9f0f9b1
Close #2847 assume obj as an id first in Collection#get
2013-11-04 10:16:42 -06:00
Tim Griesser
fb8dfda0ed
_addReference, to mirror _removeReference
2013-10-29 19:53:54 -04:00
Brad Dunbar
2d52d8f795
Add new methods from underscore 1.5.2.
2013-10-25 07:25:43 -04:00
Jaynti Kanani
cc1d114860
refactor to more better fix and add some more tests
2013-10-16 11:04:22 +05:30
Jaynti Kanani
ddc05e36dd
allow operation with dense array for Backbone collection
2013-10-11 18:15:01 +05:30
Jeremy Ashkenas
0a4399e3de
Backbone.js 1.1.0
2013-10-10 21:57:30 -03:00
Jeremy Ashkenas
41f815dbc9
Mild DRY-ing, and fixing logic error.
2013-10-10 21:32:19 -03:00
Jeremy Ashkenas
ac83197b03
Firming up returning models from add and remove, plus tests.
2013-10-10 21:21:59 -03:00
Jeremy Ashkenas
d9ac39fa64
Fixes #2428 -- set now returns added or merged models, so does add, so does push, so does unshift.
2013-10-10 17:14:13 -03:00
Jeremy Ashkenas
ce69368fcc
Merge pull request #2783 from caseywebdev/gh-2470
...
Fix #2470 Do not mutate options in _prepareModel
2013-10-10 06:03:23 -07:00
Jeremy Ashkenas
f627855149
Merge pull request #2795 from akre54/shorter-defaults
...
Shorter defaults in model ctor
2013-10-10 05:54:02 -07:00
Adam Krebs
cdceabe6c4
shorter defaults in model ctor, shorter extends in history
2013-10-08 10:19:07 -04:00
Casey Foster
5644a5909a
Fix #2470 Do not mutate options in _prepareModel
2013-09-25 15:00:56 -05:00
Tim Griesser
f6fa0cb87e
Merge pull request #2766 from braddunbar/navigate-hash
...
Fix #2765 - Strip hash and query for matching.
2013-09-23 06:34:44 -07:00
Casey Foster
30f84f58a5
Fix the set stack overflow case with the at option too
2013-09-19 15:57:53 -05:00
Casey Foster
98356bd85d
Style tweaks
2013-09-19 15:53:54 -05:00
vlad
b0884cf5e3
fix stack overflow exception fired in Collection.set with large collection (with chrome/nodejs/v8)
2013-09-19 21:37:14 +03:00
Brad Dunbar
f0572b0e51
Fix #2765 - Strip hash and query for matching.
2013-09-19 09:54:57 -04:00
Jeremy Ashkenas
abcb3cf3ef
Removing extra preparemodel calls.
2013-09-11 21:19:37 -03:00