Jeremy Ashkenas
db4f66ba52
Fixes #1151
2012-04-09 16:16:34 -04:00
Jeremy Ashkenas
fb49233436
Merge pull request #1185 from aterris/fragment
...
Use window.location.pathname as the fragment when _wantsHashChange == false
2012-04-06 07:39:24 -07:00
Mitchell Cowie
74dec4d956
Bypass iframe for old IE when hash change disabled
2012-04-05 23:03:14 -06:00
Andrew Terris
7596947b06
use pathname as fragment when hashChange: false
2012-04-04 21:44:18 -05:00
Jeremy Ashkenas
091b3e5a80
Merge pull request #1181 from braddunbar/isvalid
...
Fix #1179 - isValid returns true in the absence of validate.
2012-04-04 07:08:33 -07:00
Brad Dunbar
af30bcf3ca
off is chainable when there are no events.
2012-04-04 05:52:54 -07:00
Brad Dunbar
137b7fd670
Fix #1179 - isValid returns true in the absence of validate.
2012-04-04 05:28:40 -07:00
Jeremy Ashkenas
da97490f0b
Optimizing #1172
2012-04-02 10:13:50 -04:00
Nicklas Ansman Giertz
2a1d06353f
Make sure the attribute object is clone before extending it
2012-04-02 12:38:27 +02:00
Brad Dunbar
5d04588ae7
toJSON is called implicitly.
2012-03-29 07:52:16 -04:00
Raúl Naveiras
db4b617697
add ignores comparator when at option is passed
2012-03-26 16:30:26 +02:00
Jeremy Ashkenas
4d0051de76
Merge branch 'master' of github.com:documentcloud/backbone
2012-03-22 12:03:28 -04:00
Jeremy Ashkenas
af721fbc83
adding a missing typoed comment.
2012-03-22 12:03:18 -04:00
Ben Orenstein
c7034b9735
Let make take other falsy values for content.
2012-03-21 17:21:16 -04:00
Ben Orenstein
69d2c50640
Allow make to take an argument of 0.
2012-03-21 17:07:32 -04:00
Jeremy Ashkenas
863814e519
Backbone.js 0.9.2
2012-03-21 14:55:29 -04:00
Jeremy Ashkenas
56e10451d4
more comments, more spacing, more better
2012-03-21 12:21:16 -04:00
Jeremy Ashkenas
4f8d790cda
more comments, more better
2012-03-21 12:07:42 -04:00
Jeremy Ashkenas
42ad7a677e
fixes #1092 -- use model.get( internally instead of raw access, for easier extension / overriding.
2012-03-21 11:23:02 -04:00
Jeremy Ashkenas
f4a1ebc374
fixes #1030 -- save with wait:true with a synchronous Backbone.sync
2012-03-21 11:18:30 -04:00
Jeremy Ashkenas
e9e1abfe61
model.destroy() returns false if the model.isNew()
2012-03-21 10:40:54 -04:00
Jeremy Ashkenas
7b6dbc8dcd
Merge pull request #1021 from ahamid/reset_passes_options
...
small patch to allow passing options through reset to model initializer
2012-03-19 14:00:58 -07:00
Jeremy Ashkenas
de599c169d
Fixes #991 . Add Collection#where for simple filters
2012-03-19 16:34:53 -04:00
Jeremy Ashkenas
5f41b88764
Merge pull request #1110 from braddunbar/off
...
Fix #1105 - Add convenience overloads for `off`.
2012-03-19 09:27:17 -07:00
Jeremy Ashkenas
e2e0a0982b
Merge pull request #1114 from braddunbar/save-wait-validate
...
Fix #1057 - Save with wait validates model.
2012-03-19 08:35:12 -07:00
Brad Dunbar
9ffc84c9fe
Fix #1112 - options.model sets collection.model.
2012-03-18 22:28:08 -04:00
Brad Dunbar
6948b59e61
Fix #1057 - Save with wait validates model.
2012-03-18 08:59:23 -04:00
Brad Dunbar
fb27097835
Fix #1105 - Add convenience overloads for off.
2012-03-17 09:02:23 -04:00
Jeremy Ashkenas
7e8218835c
Merge branch 'master' of github.com:documentcloud/backbone
2012-03-14 10:28:50 -04:00
Jeremy Ashkenas
9414513acb
Fixes #1098
2012-03-14 10:28:05 -04:00
Alex Buck
82eed08b7a
Slight optimization for Events cache splitting Regex
...
- cache the regular expression used to separate the event string
- changed old eventSplitter to delegateEventSplitter to remove ambiguity
- http://jsperf.com/triggering
- not caching the regex is 85% slower on chrome linux i686
2012-03-13 21:14:16 -04:00
Jeremy Ashkenas
64f37ce00e
fixes #1067 , urlRoot vs collection.url() order
2012-03-12 11:22:44 -04:00
Brad Dunbar
6c392fa69a
Fix #986 - Undelegate events before changing el.
2012-02-27 15:01:05 -05:00
Jeremy Ashkenas
dca02ecab7
Fixes #1053 -- updating comment to reflect changed style of validate()
2012-02-27 14:56:21 -05:00
Jeremy Ashkenas
07604deac0
merging in hash fixer for FF
2012-02-27 14:30:23 -05:00
Jeremy Ashkenas
b37a09662e
Merge pull request #1048 from marat-dreizin/master
...
Added ability to avoid an additional '$()' call in 'setElement' method if current 'element' is already wrapped with '$()'
2012-02-27 11:14:50 -08:00
Jeremy Ashkenas
c9599d6ba0
fixing or= JS style for sync options.
2012-02-27 14:04:44 -05:00
Oli
daea564e8a
Made Backbone.sync options parameter optional
2012-02-27 18:04:59 +00:00
Marat Dreizin
0d1d278c7b
Added ability to avoid an additional '$()' call in 'setElement' method if current 'element' is already wrapped with '$()'
2012-02-25 02:05:12 +03:00
Brad Dunbar
e3098484ce
Use local references to Model, View, etc.
2012-02-18 12:35:50 -05:00
Brad Dunbar
f92fa9a0bd
Clean up Backbone.Events.
...
* Refactor `Backbone.Events` for increased clarity.
* Update documentation to include multiple events.
* Use `event` consistently throughout.
2012-02-18 09:19:26 -05:00
Jeremy Ashkenas
c6b28149fa
Merge pull request #982 from braddunbar/change
...
Fixes #959 - Silent changes fire `'change:attr'`.
2012-02-17 05:06:52 -08:00
Brad Dunbar
afbca7229c
Fixes #1016 - Expose changed.
...
* Expose `changed` as a public hash of changes.
* Initialize `changed`, `_pending`, and `_silent`
in the constructor instead of checking in `set`.
* Ensure `changed` matches `attributes`.
2012-02-17 07:22:43 -05:00
Brad Dunbar
82ee97d36b
Use null for uninitialized variables.
2012-02-17 07:22:43 -05:00
Brad Dunbar
69b80f5e3a
Fixes #959 - Silent changes fire 'change:attr'.
...
* Silent changes are tracked so `'change:attr'` can be
fired next time `change` is called.
* Pending changes are tracked to prevent infinite loops
and accurately reflect nested changes.
2012-02-17 07:22:43 -05:00
Aaron Hamid
79045c11cb
small patch to allow passing options through reset to model initializer
2012-02-17 04:03:30 -05:00
Otto Allmendinger
5071967e32
fix error message on missing event callback
2012-02-16 11:48:58 +01:00
Brad Dunbar
232c888038
fixes #1003 - History is started before navigate
2012-02-15 00:39:38 -05:00
Brad Dunbar
8b285c6c83
on is a noop if no callback is provided
2012-02-14 15:22:27 -05:00
Jeremy Ashkenas
a603e5a843
resolving merge with master.
2012-02-13 14:41:46 -05:00