Commit Graph

102 Commits

Author SHA1 Message Date
Oliver Sartun
8d026dbb12 Merge pull request #9 from osartun/patch-1
Added CommonJS Support by shuvalov-anton
2014-06-30 11:40:58 +02:00
Oliver Sartun
694c0d6156 Corrected typo
An f was missing. It was just actory instead of factory
2014-06-30 11:37:37 +02:00
Shuvalov Anton
521049ac89 add commonjs support 2014-06-29 17:11:16 +04:00
Oliver Sartun
432c5ed9e5 Merge pull request #5 from creynders/bowerup
Added bower.json file
2014-02-11 13:08:16 +01:00
Camille Reynders
8d17cc8174 Added bower.json file
Fixes #1
2014-02-10 12:02:25 +01:00
Oliver Sartun
79d64b4556 Merge pull request #4 from osartun/patch-1
Corrected grammatical mistakes
2014-01-11 04:31:26 -08:00
Oliver Sartun
e88574fbb1 Corrected grammatical mistakes 2014-01-11 13:29:41 +01:00
Oliver Sartun
5186f4e30e Merge pull request #3 from Infowatch/master
hot fix collision with native backbone unset option #2
2014-01-11 04:23:20 -08:00
Vladislav Botvin
0142f982e8 hot fix collision with native backbone unset option #2 2014-01-11 00:09:05 +04:00
Oliver Sartun
4927777d8e Added a link to backbone.undojs.com 2013-11-04 00:51:52 +01:00
Oliver Sartun
5997f735cf Renamed "Magic Condensation" to "Magic Fusion" 2013-10-29 22:49:49 +01:00
Oliver Sartun
b02b3e6278 Renamed "Magic Condensation" to "Magic Fusion" 2013-10-29 22:47:39 +01:00
Oliver Sartun
82112bd479 Added missing concretization 2013-10-29 21:54:42 +01:00
Oliver Sartun
60ed5584cc Extended the documentation about how and when to use the merge function 2013-10-29 21:53:21 +01:00
Oliver Sartun
39ec25b4e4 Added documentation about the global functions of Backbone.UndoManager 2013-10-29 21:37:54 +01:00
Oliver Sartun
784d4d7388 Correcting the notion that the constructor would be Backbone.Undo 2013-10-29 21:28:43 +01:00
Oliver Sartun
ba634fe5a3 Removed unused reference to window and document 2013-10-28 12:05:35 +01:00
Oliver Sartun
02bba64eec Changed "lowdash.js" to "Lo-Dash.js" 2013-10-28 12:03:08 +01:00
Oliver Sartun
5e2462da25 Setting Versionnumber to 0.2
Major changes were added since the initial commit, partly even changes
that aren't backwards compatible. The version number should indicate
this progress.
2013-10-27 18:06:00 +01:00
Oliver Sartun
9fd66898fa Applied username change 2013-10-27 17:16:20 +01:00
Oliver Sartun
8a504fc4d7 Deleted minified version 2013-10-25 12:51:59 +02:00
Oliver Sartun
9122f8a867 Added section "Using the UndoTypes API per instance" 2013-10-24 20:17:35 +02:00
Oliver Sartun
2029406333 Removing the section on "Problems that may occur" 2013-10-24 20:05:09 +02:00
Oliver Sartun
84ea6d3603 Added the documentation for addUndoType, changeUndoType and removeUndoType 2013-10-24 20:01:06 +02:00
Oliver Sartun
c199856d24 Added a code example to the description of 'on' in the UndoTypes section 2013-10-24 19:12:38 +02:00
Oliver Sartun
0288f4569f Extended the description about UndoTypes 2013-10-24 19:05:51 +02:00
Oliver Sartun
cc62b47a9d Updated the documentation 2013-10-24 15:49:17 +02:00
Oliver Sartun
e629e5cb56 Removed the unregistration and new registration while merging undoManagers 2013-10-24 15:22:34 +02:00
Oliver Sartun
db4982299b Rewritten major parts of the description 2013-10-24 14:21:57 +02:00
Oliver Sartun
280681da4c Removed the only reference to jQuery, so, jQuery is no longer a dependency for Backbone.Undo.js 2013-10-24 13:59:52 +02:00
Oliver Sartun
7f3534ef6c Rewritten almost all unit tests to make use of the new ability to make synchronous calls 2013-10-24 12:02:00 +02:00
Oliver Sartun
ea15fe0f4c The merge function can now handle merge several undoManagers at once by passing several arguments or an array as the argument 2013-10-24 12:02:00 +02:00
Oliver Sartun
fc7d2bfa96 Rephrased comments 2013-10-24 12:02:00 +02:00
Oliver Sartun
1731e34928 The merge direction was changed: The stack-reference of the passed undoManagers is set to the stack of the undoManager the merge method is called on 2013-10-24 12:02:00 +02:00
Oliver Sartun
3ef848ac25 The merge method now makes use of the unregisterAll method 2013-10-24 12:02:00 +02:00
Oliver Sartun
8938a0dc84 The check if an object is registered now happens in the objectRegistry
register and unregister are returning true now, if they successfully
register resp. unregister an object
2013-10-24 12:02:00 +02:00
Oliver Sartun
6ec2869cc8 defaults function added for globally changing/setting the UndoManager's default values 2013-10-24 12:02:00 +02:00
Oliver Sartun
b01f919b9a Feature: You can register objects on instantiation now
No need for calling the register method afterwards anymore. Pass an
array or a single object
2013-10-24 12:02:00 +02:00
Oliver Sartun
ab20281c58 The "change" UndoType now rightfully unsets added attributes on undo/redo 2013-10-24 12:02:00 +02:00
Oliver Sartun
65fead3ffa The UndoTypes function get the "options" object passed as the fourth argument instead of the UndoAction's data
This change can break compatibility with externally added UndoTypes
2013-10-24 12:02:00 +02:00
Oliver Sartun
3829003ad3 Comment slightly changed 2013-10-24 12:02:00 +02:00
Oliver Sartun
46bd67b72b Added method unregisterAll to unregister all registered objects 2013-10-24 12:01:59 +02:00
Oliver Sartun
1623d0be70 Added a whole lotta comments 2013-10-24 12:01:59 +02:00
Oliver Sartun
17c66ee928 Renamed "cycleIndex" into "magicCondensationIndex" and made the magicCondensation an Opt-In
By altering the default behaviour and making magicCondensation and
opt-in, this version of Backbone.Undo is not backward compatible anymore
2013-10-24 12:01:59 +02:00
Oliver Sartun
51a06f7bf1 Typo corrected
Jeez! Have I been asleep while writing that?
2013-09-23 11:48:43 +02:00
Oliver Sartun
a78d7c8bf8 Deeper integration of undoTypes-"condition"-function
Instead of getting called from within the "on"-function, the
"condition"-function now gets called by the addToStack function. That
way its better suitable for custom undoTypes or changed undoTypes, as
the authors of these undoTypes don't have to manually integrate it into
their implementation.
2013-07-06 17:01:28 +02:00
Oliver Sartun
7df7d2ae2f The undoTypes now have a "condition" function that is called in the "on"-Handler
The "condition" function gets called with the same arguments like the
"on" function. If it returns true, the "on" function continues and
creates the UndoAction-data. If it returns false, no UndoAction gets
created
2013-07-06 16:00:46 +02:00
Oliver Sartun
9fa2990957 Bugfix: The undoTypes-object is now stored/referenced per UndoAction 2013-07-06 15:54:51 +02:00
Oliver Sartun
33b05920ea Added the possibility to start tracking right away by passing {track: true} to the constructor 2013-06-30 16:57:04 +02:00
Oliver Sartun
5ddef62b54 Added tests for 'merge' and the objectRegistry 2013-06-29 19:48:15 +02:00