Commit Graph

  • 8a4af7212e tweaking catalog of events Jeremy Ashkenas 2012-12-14 16:01:23 -05:00
  • 31655fc6b2 Merge pull request #1945 from akre54/docs-route-event Jeremy Ashkenas 2012-12-14 12:58:36 -08:00
  • 919bd91484 catalog the route event on history when Router.route matches Adam Krebs 2012-12-14 15:49:18 -05:00
  • bb67b6c60d using isEqual to check model change Tim Griesser 2012-12-14 15:04:16 -05:00
  • c1b0224253 Fix typo in update changelog bullet Genadi Samokovarov 2012-12-14 20:49:50 +02:00
  • 6aaec10a3d Document View#id and View#className as functions Genadi Samokovarov 2012-12-14 20:17:56 +02:00
  • 8d243b5e78 tweak setDomLibrary changelog Jeremy Ashkenas 2012-12-14 11:14:31 -05:00
  • bc8b829225 Merge pull request #1926 from nervetattoo/patch-1 Jeremy Ashkenas 2012-12-14 08:12:22 -08:00
  • abd938f3cd Fixes #1929 -- clarify the change to 'parse' behavior Jeremy Ashkenas 2012-12-14 11:08:08 -05:00
  • 884e4eee55 Fixes #1931 -- document Backbone mixing in Events Jeremy Ashkenas 2012-12-14 11:02:09 -05:00
  • 91eb6c3242 re-docc'ing todo example with listenTo. Jeremy Ashkenas 2012-12-14 10:52:17 -05:00
  • ef0225e16a Merge pull request #1933 from yuku-t/update-todos Jeremy Ashkenas 2012-12-14 07:50:54 -08:00
  • 399afd827b Fixes #1937 -- fixes source annotations Jeremy Ashkenas 2012-12-14 10:32:45 -05:00
  • 68b650d71d Merge branch 'gh-pages' of github.com:documentcloud/backbone into gh-pages Jeremy Ashkenas 2012-12-14 10:28:35 -05:00
  • 4e239d48c4 Fixes #1928 -- document the new 'request' event. Jeremy Ashkenas 2012-12-14 10:28:13 -05:00
  • 1da76a2dd7 Merge pull request #1936 from tgriesser/validation-line Jeremy Ashkenas 2012-12-14 07:18:25 -08:00
  • 5d3edae026 removing line about silent delaying validation Tim Griesser 2012-12-14 10:13:44 -05:00
  • ab8364e40f Fixes #1924 -- properly document fetch-with-update Jeremy Ashkenas 2012-12-14 10:13:14 -05:00
  • bb0d351950 using 'listenTo' instead of 'on' in todos example app Yuku Takahashi 2012-12-14 22:40:27 +09:00
  • cd9a90af08 Add changelog note about deprecated setDomLibrary Raymond Julin 2012-12-14 08:59:28 +01:00
  • 0085732068 typo Jeremy Ashkenas 2012-12-13 22:57:23 -05:00
  • 3efc1eda4f Fix #1922 -- document removal of getByCid Jeremy Ashkenas 2012-12-13 20:30:22 -05:00
  • 3f345dd261 Merge pull request #1921 from mindscratch/master Jeremy Ashkenas 2012-12-13 16:38:40 -08:00
  • 501c2e74cf fixed typo mindscratch 2012-12-13 19:01:52 -05:00
  • 3ccde89a97 router test tweak to placate oldIEs Jeremy Ashkenas 2012-12-13 18:37:35 -05:00
  • 328e721896 router test tweak to placate oldIEs Jeremy Ashkenas 2012-12-13 18:36:43 -05:00
  • aaaefd21d8 tweaking test case for IE7 Jeremy Ashkenas 2012-12-13 18:31:31 -05:00
  • 9b97cc3442 adding a 'listenTo' example to the main View docco. Jeremy Ashkenas 2012-12-13 18:16:01 -05:00
  • 5342d3d5d8 removing old isValid tests Jeremy Ashkenas 2012-12-13 18:05:06 -05:00
  • 5ecaa09c26 trying to reset against master Jeremy Ashkenas 2012-12-13 17:48:02 -05:00
  • 18b445e8a0 Backbone 0.9.9 0.9.9 Jeremy Ashkenas 2012-12-13 17:44:31 -05:00
  • 87a25d5b70 Merge pull request #1920 from caseywebdev/master Jeremy Ashkenas 2012-12-13 12:58:29 -08:00
  • 74ae40ea72 Fix #1915 - parse ordering in update Casey Foster 2012-12-13 12:56:11 -08:00
  • 50c41d3e88 Merge pull request #1916 from caseywebdev/events Jeremy Ashkenas 2012-12-13 12:15:08 -08:00
  • abd96d6d7a inlining defaults Jeremy Ashkenas 2012-12-13 15:00:58 -05:00
  • bd31613cd7 Fix earlier commit -- got my defaults ordering backwards. Jeremy Ashkenas 2012-12-13 15:00:17 -05:00
  • d2e2e93008 Merge pull request #1917 from elasticsales/master Jeremy Ashkenas 2012-12-13 11:58:42 -08:00
  • dc0bfe40d8 failing unit tests with 'defaults' Phil Freo 2012-12-13 14:50:44 -05:00
  • 1806a8d368 Cache context, avoid switch in loop, profit Casey Foster 2012-12-13 11:20:01 -08:00
  • daf6892d22 Fixes #1912 -- Collection#fetch only parses once. Jeremy Ashkenas 2012-12-13 13:54:59 -05:00
  • 50be4423f1 Fixes #1913 -- updates Backbone defaults semantics to use _.defaults. Jeremy Ashkenas 2012-12-13 13:23:13 -05:00
  • 27d9428472 Merge pull request #1911 from gsamokovarov/bump-to-underscore-14 Jeremy Ashkenas 2012-12-13 06:01:56 -08:00
  • 0737deecd7 Bump Underscore to 1.4.3 in package.json and index.html Genadi Samokovarov 2012-12-13 15:35:39 +02:00
  • 9365dacc30 Revert "removing false optimization, inlining triggerEvents. Thanks @caseywebdev" Jeremy Ashkenas 2012-12-13 00:52:32 -05:00
  • 957595f56f removing false optimization, inlining triggerEvents. Thanks @caseywebdev Jeremy Ashkenas 2012-12-12 20:34:10 -05:00
  • df74b030e9 Merge pull request #1907 from tgriesser/patch-bug Jeremy Ashkenas 2012-12-12 17:27:24 -08:00
  • cc164563d6 fixing issue in patch not sending data Tim Griesser 2012-12-12 18:40:41 -05:00
  • b7102e0a61 Merge pull request #1905 from caseywebdev/update Jeremy Ashkenas 2012-12-12 14:29:13 -08:00
  • bd095293e9 rename _currentState to _currentAttributes Jeremy Ashkenas 2012-12-12 17:19:35 -05:00
  • 66e25ef5ca Removing pedantic definition of internal private variables Jeremy Ashkenas 2012-12-12 17:11:58 -05:00
  • f8753b8fea various simplifications to _computeChanges Jeremy Ashkenas 2012-12-12 17:03:12 -05:00
  • 69b3c1382d optimize computeChanges() by removing a splice, and fix a bug with multiple falsy values being set for an attribute Jeremy Ashkenas 2012-12-12 16:48:33 -05:00
  • 6ea96c167d unset does *not* need to fire a change for undefined attributes Jeremy Ashkenas 2012-12-12 16:29:29 -05:00
  • 02a78ac9ae adding a test to ensure that changes are triggered in the appropriate order. Jeremy Ashkenas 2012-12-12 16:24:22 -05:00
  • a5299f8058 removing escape handling of undefined in favor of an upgraded Underscore.js Jeremy Ashkenas 2012-12-12 16:19:07 -05:00
  • bcce5f4f6c renaming 'set' internals, for clarity Jeremy Ashkenas 2012-12-12 16:17:23 -05:00
  • ba7a279f7c moving unset loop from set into unset itself Jeremy Ashkenas 2012-12-12 16:05:44 -05:00
  • 36c3e44e19 you shouldn't be able to set(model), instead set(model.attributes) Jeremy Ashkenas 2012-12-12 16:02:40 -05:00
  • b978df1ac3 removing escapedAttributes caching for simplicity's sake Jeremy Ashkenas 2012-12-12 15:58:22 -05:00
  • 6459a39949 expanding comments Jeremy Ashkenas 2012-12-12 14:09:55 -05:00
  • 72a24ecf40 renaming 'cb' to 'callback' for clarity, and refactoring Events#off Jeremy Ashkenas 2012-12-12 13:56:00 -05:00
  • 4439b214e7 add one more switch case to triggerEvents, because most built-in backbone events are called with 3 arguments. Jeremy Ashkenas 2012-12-12 13:29:26 -05:00
  • 1bd34b061a Simplify/robustify update Casey Foster 2012-12-12 10:27:17 -08:00
  • 644aecc487 (hopefully) simplifying and optimizing 'trigger' further Jeremy Ashkenas 2012-12-12 13:25:08 -05:00
  • ac94b84c56 working version, WIP Jeremy Ashkenas 2012-12-12 13:05:48 -05:00
  • b2b014228c merged in casey's events optimizations ... tweaking to follow Jeremy Ashkenas 2012-12-12 12:00:55 -05:00
  • 15bf791dc3 Implement brad's off with _.once Casey Foster 2012-12-12 08:36:48 -08:00
  • 9de1ddd1c1 back to previous 'once' implementation ... tbd Jeremy Ashkenas 2012-12-12 11:33:26 -05:00
  • aa4c056ef6 renaming once'd event callback for clarity -- new failing test. Jeremy Ashkenas 2012-12-12 11:15:17 -05:00
  • 9ce995df70 spacing for off condition Jeremy Ashkenas 2012-12-12 11:09:23 -05:00
  • 89936d8f39 simplifying trigger condition Jeremy Ashkenas 2012-12-12 11:08:36 -05:00
  • 4d9776e50e DRY-ing up event map support Jeremy Ashkenas 2012-12-12 10:52:15 -05:00
  • f0da2ebec5 Merge pull request #1890 from braddunbar/once Jeremy Ashkenas 2012-12-12 07:43:26 -08:00
  • 307b293ab9 Final events optimizations and rebase Casey Foster 2012-12-11 14:50:04 -08:00
  • 2a7a45a6a5 Account for once("all", ...) Casey Foster 2012-12-11 05:45:09 -08:00
  • 842f48f224 Events revamp alternative version Casey Foster 2012-12-10 09:56:00 -08:00
  • 9e07557c24 Revamped events Casey Foster 2012-12-07 21:49:27 -08:00
  • 7e7b214269 revised update implementation with inline id/cid map instead of using an inline Collection for speed. Plus tests. Jeremy Ashkenas 2012-12-11 17:10:02 -05:00
  • 601feb3def don't blow up if you try to stopListening() an object, but have never listened in the first place Jeremy Ashkenas 2012-12-11 14:41:31 -05:00
  • 0494252446 Make event maps a bit more lenient about context, for internal convenience. Jeremy Ashkenas 2012-12-11 14:02:37 -05:00
  • 1191640d84 Fixes #1363, fixes #1461, removes View#dispose, adds Events#listenTo and Events#stopListening, and implements View#remove in terms of those. Jeremy Ashkenas 2012-12-11 13:41:39 -05:00
  • d3afe80671 Merge pull request #1899 from caseywebdev/array-literal Jeremy Ashkenas 2012-12-11 08:50:51 -08:00
  • 968ec9e6b2 Shave some bytes with an array literal Casey Foster 2012-12-11 08:47:42 -08:00
  • d04c6182ef merged Jeremy Ashkenas 2012-12-11 11:36:23 -05:00
  • b9d0f8de44 #1894 sort option for add Casey Foster 2012-12-11 08:30:28 -08:00
  • a97880cb27 merged Jeremy Ashkenas 2012-12-11 11:24:07 -05:00
  • 5cab60be4f Defaulting remove:true for Collection#update Jeremy Ashkenas 2012-12-11 11:20:19 -05:00
  • 68413a04f4 Merge pull request #1896 from braddunbar/push-sort Jeremy Ashkenas 2012-12-11 07:26:56 -08:00
  • 6c0cda6707 Fix #1894, Collection#push should not sort. Brad Dunbar 2012-12-11 10:19:36 -05:00
  • f71004fc7a Add failing test case for different idAttribute fields Casey Foster 2012-12-10 21:28:12 -08:00
  • a645760286 Change Collection#sort's event from 'reset' to 'sort', so you can optimize further if you wish. Jeremy Ashkenas 2012-12-10 23:48:25 -05:00
  • 5713b5ee96 s/event/run Jeremy Ashkenas 2012-12-10 17:04:33 -05:00
  • d4d2daf891 Fixes #618 -- support for a simple version of PATCH Jeremy Ashkenas 2012-12-10 16:31:02 -05:00
  • 104e9baebb Merging in Collection#update -- revised implementation, some tweaks: models are retained by default, there's no new 'update' event. Jeremy Ashkenas 2012-12-10 15:59:23 -05:00
  • d6d264bebd Merge branch 'collection-update' of https://github.com/caseywebdev/backbone Jeremy Ashkenas 2012-12-10 14:47:35 -05:00
  • ec97a1cef9 Fixes #1468 -- add a 'request' event that allows folks to watch for spinners etc. Passes the XHR on which you can .then, .error, and so on. Jeremy Ashkenas 2012-12-10 14:10:41 -05:00
  • 1be8eb0847 Implement once with minimal change to other Events methods. Brad Dunbar 2012-12-07 18:59:58 -05:00
  • 615b08c9e8 Merge pull request #1881 from gsamokovarov/refactor-events-test Jeremy Ashkenas 2012-12-10 10:16:07 -08:00
  • 188eb98ab6 Add asynchronous test for once Genadi Samokovarov 2012-12-08 18:04:54 +02:00
  • c6ca92850c Merge branch 'master' into collection-update Casey Foster 2012-12-10 08:02:43 -08:00