Jeremy Ashkenas
b2407efb43
Merge branch 'router_no_callback' of https://github.com/derickbailey/backbone
2011-10-29 15:53:32 -04:00
Jeremy Ashkenas
c37e2f9bd1
Merge branch 'master' of https://github.com/alexgraul/backbone
2011-10-29 13:28:02 -04:00
Alex Graul
567e0a3c2d
Fix for adding models with custom set methods to collections, issue #539
2011-10-29 13:23:01 -04:00
Jeremy Ashkenas
b4f680e371
Merge branch 'master' of https://github.com/iros/backbone
2011-10-29 12:39:38 -04:00
Irene Ros
2be771412b
Setting _unsetAttributes to false in unset rather than changedAttributes so that the unset attributes aren't lost on subsequent calls of changedAttributes. Added test to verify this behavior.
2011-10-29 12:27:46 -04:00
Irene Ros
f499fc8cfc
Merge branch 'master' of github.com:spmason/backbone
2011-10-29 11:39:35 -04:00
Jeremy Ashkenas
32ae113298
upgrading to the latest version of Underscore.
2011-10-29 11:24:36 -04:00
Derick Bailey
6799c8e8be
added a test and code to allow a router to define a route with no callback method for the route name
2011-10-06 19:09:53 -05:00
Les Hill
ef40512d84
Rename to undelegateEvents
...
As suggested by @jashkenas https://github.com/documentcloud/backbone/pull/620#issuecomment-2132400
2011-09-19 10:30:45 -07:00
Les Hill
1aaffa1302
Clear event callbacks with clearEvents
2011-09-18 23:29:51 -07:00
Jacob Thornton
084e0288e7
add support and tests for ender jeesh
2011-08-18 16:41:42 -07:00
Steve Mason
5310996d09
Test for unset attributes not being returned by changedAttributes
2011-08-11 08:55:12 +01:00
Jeremy Ashkenas
6bb43c1b81
fixes #244 -- allow View#events to be defined as a function, making it easier to call super.
2011-08-03 16:41:49 -04:00
Jeremy Ashkenas
49a16bdd32
Merge pull request #500 from keithcirkel/master
...
Issue #482
2011-07-26 10:22:43 -07:00
Chris Moore
3145b4db22
isNew should use id, not idAttribute
2011-07-25 17:48:09 -04:00
Keith Cirkel
6ef6f759b6
Add a third "context" argument to Backbone.Event.Bind which, when passed, will bind the callback to the provided context.
...
Example:
Backbone.Event.Bind('event', this.event, this);
Before this commit the way to do this was as follows:
Backbone.Event.Bind('event', _.bind(this.event, this));
2011-07-25 22:47:48 +01:00
Jeremy Ashkenas
6d07d2f0e2
multiple models with the same ID should be allowed in a collection.
2011-07-05 16:40:23 -04:00
Jeremy Ashkenas
da6d0b90ca
resolving merge conflict, removing old test.
2011-07-05 09:42:15 -04:00
Jeremy Ashkenas
fcbedad8cd
Addinga a test case for #459
2011-07-05 09:00:12 -04:00
Jeremy Ashkenas
d2082a54cf
issue #451 + test.
2011-07-01 18:54:49 -04:00
Jeremy Ashkenas
af674c98c5
almost to 0.5.0...
2011-07-01 12:36:11 -04:00
Jeremy Ashkenas
b5112b40a3
Merge pull request #414 from niallsmart/master
...
Fix for issue #413 - collection.add should fail for duplicates
2011-06-29 19:15:08 -07:00
Jeremy Ashkenas
ba1d9a1efd
removing complex router text (unfixable)
2011-06-29 21:20:33 -04:00
Jeremy Ashkenas
4138b58195
Merge pull request #430 from reconbot/master
...
Add complex query string router test
2011-06-29 18:17:22 -07:00
Gavin Huang
4e9037b018
Model is no longer considered to be new if its id is a falsey value
2011-06-23 16:09:41 +08:00
Gavin Huang
573c347553
Fix unit test for model.isNew()
2011-06-23 16:08:16 +08:00
Francis Gulotta
621c9edfc6
Test complex query strings. Fails in some browsers.
2011-06-17 15:37:12 -04:00
Niall Smart
0853866aab
Collection.add should fail if duplicate id/cid exists
2011-06-13 18:11:04 -07:00
Matt Smith
d3a0b64603
remove model_with helper from test
2011-05-31 09:31:04 -04:00
Jeremy Ashkenas
e01ad9dd5b
Merging in #232 . Allow destroy() to be called on non-persisted objects ... just in case.
2011-05-27 11:30:48 -04:00
Jeremy Ashkenas
9accf97e9e
Issue #246 -- never fire nested change events for the same model. The top-level one will do.
2011-05-27 10:29:14 -04:00
Jeremy Ashkenas
ed636326dd
Issue #250 -- duplicated QUnit.
2011-05-27 09:58:18 -04:00
Jeremy Ashkenas
300c7f0e9c
fix the zepto test suite.
2011-05-26 11:04:56 -04:00
Jeremy Ashkenas
cf3215139a
initial draft of a 0.5.0 branch
2011-05-26 10:54:28 -04:00
Jeremy Ashkenas
e8476afef0
Issue #366 , support for namespaced events.
2011-05-24 13:07:11 -04:00
Jeremy Ashkenas
a5d01f91fe
fixing tests for IE / Webkit ... regex, not string match.
2011-05-23 09:50:26 -04:00
Samuel Clay
ee215be027
Adding test for hashbang URLs. For pull request #312 .
2011-04-22 12:16:17 -04:00
Pablo A. Torres Navarrete
0f118ecb6e
Add a failing test for Collection.create not running callbacks
2011-04-21 12:07:11 -05:00
Jeremy Ashkenas
222d673dcc
Issue #289 . Enable the use of jQuery.Deferred by returning Deferred objects from save() and fetch() calls.
2011-04-18 17:08:34 -04:00
Jeremy Ashkenas
37ddad508d
Issue #309 , more sophisticated event handling, for unbinding events in the midst of them firing.
2011-04-18 16:39:26 -04:00
Jeremy Ashkenas
76b3ed1fb4
Merge branch 'fix_custom_events_on_models_inside_collections' of https://github.com/autohaus24/backbone
2011-04-18 10:42:52 -04:00
Jeremy Ashkenas
12661ff159
Merge branch 'master' of github.com:documentcloud/backbone
2011-04-18 09:19:15 -04:00
Jeremy Ashkenas
7b494c1e6d
Upgrading to Underscore 1.1.6 for test deps.
2011-04-18 09:19:04 -04:00
Jacek Becela
223c4fb210
Add failing test for #319
2011-04-15 09:32:46 +02:00
Samuel Clay
67d61fc355
Adding Backbone.noConflict() and keeping track of the original root.Backbone.
2011-03-23 14:08:37 -04:00
Jeremy Ashkenas
c9a634982a
Upgrade tests to Zepto 0.5
2011-03-21 10:32:56 -04:00
Jeremy Ashkenas
d97d8bf336
Upgrading Backbone.js tests to Underscore 1.1.5
2011-03-20 20:26:17 -04:00
Matt Smith
12e9d95b45
add helper method to cleanup isNew test
2011-03-03 17:40:26 -05:00
Matt Smith
4595b48ffb
refine the isNew test
2011-03-03 17:35:09 -05:00
Matt Smith
8971361bdc
split out test for positive and negative ids
2011-03-03 17:33:19 -05:00