275 Commits

Author SHA1 Message Date
Jeremy Ashkenas
0798d97672 tweaking transparent URL upgrades. 2011-07-01 13:54:56 -04:00
Jeremy Ashkenas
2e1f85d8ec replacing setLocation and saveLocation with navigate, after Spine's API. 2011-07-01 13:02:23 -04:00
Jeremy Ashkenas
af674c98c5 almost to 0.5.0... 2011-07-01 12:36:11 -04:00
Jeremy Ashkenas
ddf1a833ab slightly saner validation on initialize. 2011-07-01 11:49:19 -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
77caaed5d0 #426, better error message when events are missing. 2011-06-29 21:32:58 -04:00
Jeremy Ashkenas
07f753be2f Merge pull request #435 from threepointone/patch-1
Allow initialize on any class to pass on original arguments.
2011-06-29 18:08:13 -07:00
Jeremy Ashkenas
fa6092be79 fixing comment. 2011-06-29 21:03:27 -04: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
threepointone
3eb075a240 Allow initialize on any class to pass on original arguments. 2011-06-21 02:09:15 -07:00
Niall Smart
0853866aab Collection.add should fail if duplicate id/cid exists 2011-06-13 18:11:04 -07:00
Jeremy Ashkenas
ff57b6536d ouch, leaking global attrs. (shakes fist) 2011-05-27 12:17:10 -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
87a81e43e2 partial issue #239, always pass options to error callbacks / events. 2011-05-27 10:58:40 -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
fb8da91e3e merging in #336. 2011-05-26 15:49:16 -04:00
Paul Uithol
d7e3d5bf4a Updated to apply on the 0.5.0 branch 2011-05-26 21:34:09 +02:00
Jeremy Ashkenas
f7602a3050 Merge branch 'patch-1' of https://github.com/damienholzapfel/backbone into 0.5.0 2011-05-26 15:08:24 -04:00
Jeremy Ashkenas
c66650ab90 Merge branch 'master' of https://github.com/corbanbrook/backbone into 0.5.0 2011-05-26 14:54:18 -04:00
Jeremy Ashkenas
082cb28b29 Merge branch 'master' of https://github.com/reconbot/backbone into 0.5.0 2011-05-26 14:52:41 -04:00
Jeremy Ashkenas
2f04473657 fixing refresh -> reset documentation. 2011-05-26 14:13:31 -04:00
Jeremy Ashkenas
2b1eae4d9c Issue #365. delete options.comparator. 2011-05-26 13:54:22 -04:00
Jeremy Ashkenas
e56346c7ae normalizing for the Safari window.location bug. 2011-05-26 13:30:29 -04:00
Jeremy Ashkenas
f742bbe947 fixing IE support for 0.5.0 2011-05-26 13:25:06 -04:00
Jeremy Ashkenas
e9b38de419 Backbone.Router formatting, tweaks. 2011-05-26 12:56:08 -04:00
Jeremy Ashkenas
e5ee5503fd Adding Backbone.Router.setLocation, alongside saveLocation, to both save and route at once. 2011-05-26 12:02:12 -04:00
Jeremy Ashkenas
636e7b00a9 remove an extraneous this.options 2011-05-26 11:54:35 -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
489ebb7040 Issue #228 ... IE7 hash should look correct after initial load. 2011-05-23 10:28:42 -04:00
Francis
82c288c91e Following recommendations from the OWASP
https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet

Should be tested with
http://ha.ckers.org/xss.html

Make sure your pages are utf8!
2011-05-07 22:47:35 -07:00
Corban Brook
9d5308b1ab Pass options to the coll.add call in Collection::create so that it can work silently. 2011-05-05 15:15:16 -04:00
Jeremy Ashkenas
82e0b34ada Merge pull request #267 from jasondavies/master.
Don't set content type header for GET requests
2011-05-01 06:48:17 -07:00
Damien Holzapfel
7afd43c0ef Reference calls variable in list variable definition in Backbone.Events.bind 2011-04-27 10:38:13 -07:00
Samuel Clay
ee215be027 Adding test for hashbang URLs. For pull request #312. 2011-04-22 12:16:17 -04:00
Samuel Clay
0cc8cb0890 Merge https://github.com/ptn/backbone 2011-04-22 11:52:38 -04:00
Samuel Clay
577758af89 Adding XHR object to Collection.create (which comes from Model.save). 2011-04-22 11:41:30 -04:00
Samuel Clay
399e7453f3 _ to status in Model.parse. No need to clobber Underscore.js just to ignore a parameter. 2011-04-22 11:32:57 -04:00
Samuel Clay
4881621a72 Adding XHR object to Model.parse and Collection.parse method signatures. jQuery and Zepto use the same callback signature: response, status, xhr. 2011-04-22 11:25:50 -04:00
Samuel Clay
1d4484d1e4 Removing Ender.js support for the time being, as it needs to fix its AJAX methods to corrospond with jQuery/Zepto success/error signatures. 2011-04-22 11:06:50 -04:00
Pablo A. Torres Navarrete
1598801f23 Pass the error and success callbacks when creating the model to add to a Collection 2011-04-21 11:29:55 -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
4070364e4d merging in Ender.js support 2011-04-18 09:34:51 -04:00
Vladimir Dronnikov
94edc63f20 ender.js support 2011-04-15 21:25:38 +04:00
Jacek Becela
1499d755b6 Check for model before accessing its properties, fixes #319 2011-04-15 09:34:18 +02:00
Brandon Leonardo
21fa0aa6a2 change hashStrip regex to strip bang as well, so hash-bang urls will work transparently 2011-04-11 01:49:19 -07: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
da52ae1c43 Merge branch 'fix-comment' of https://github.com/jimmydo/backbone 2011-03-21 11:00:14 -04:00