Oliver Sartun
4927777d8e
Added a link to backbone.undojs.com
11 years ago
Oliver Sartun
5997f735cf
Renamed "Magic Condensation" to "Magic Fusion"
11 years ago
Oliver Sartun
b02b3e6278
Renamed "Magic Condensation" to "Magic Fusion"
11 years ago
Oliver Sartun
82112bd479
Added missing concretization
11 years ago
Oliver Sartun
60ed5584cc
Extended the documentation about how and when to use the merge function
11 years ago
Oliver Sartun
39ec25b4e4
Added documentation about the global functions of Backbone.UndoManager
11 years ago
Oliver Sartun
784d4d7388
Correcting the notion that the constructor would be Backbone.Undo
11 years ago
Oliver Sartun
ba634fe5a3
Removed unused reference to window and document
11 years ago
Oliver Sartun
02bba64eec
Changed "lowdash.js" to "Lo-Dash.js"
11 years ago
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.
11 years ago
Oliver Sartun
9fd66898fa
Applied username change
11 years ago
Oliver Sartun
8a504fc4d7
Deleted minified version
11 years ago
Oliver Sartun
9122f8a867
Added section "Using the UndoTypes API per instance"
11 years ago
Oliver Sartun
2029406333
Removing the section on "Problems that may occur"
11 years ago
Oliver Sartun
84ea6d3603
Added the documentation for addUndoType, changeUndoType and removeUndoType
11 years ago
Oliver Sartun
c199856d24
Added a code example to the description of 'on' in the UndoTypes section
11 years ago
Oliver Sartun
0288f4569f
Extended the description about UndoTypes
11 years ago
Oliver Sartun
cc62b47a9d
Updated the documentation
11 years ago
Oliver Sartun
e629e5cb56
Removed the unregistration and new registration while merging undoManagers
11 years ago
Oliver Sartun
db4982299b
Rewritten major parts of the description
11 years ago
Oliver Sartun
280681da4c
Removed the only reference to jQuery, so, jQuery is no longer a dependency for Backbone.Undo.js
11 years ago
Oliver Sartun
7f3534ef6c
Rewritten almost all unit tests to make use of the new ability to make synchronous calls
11 years ago
Oliver Sartun
ea15fe0f4c
The merge function can now handle merge several undoManagers at once by passing several arguments or an array as the argument
11 years ago
Oliver Sartun
fc7d2bfa96
Rephrased comments
11 years ago
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
11 years ago
Oliver Sartun
3ef848ac25
The merge method now makes use of the unregisterAll method
11 years ago
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
11 years ago
Oliver Sartun
6ec2869cc8
defaults function added for globally changing/setting the UndoManager's default values
11 years ago
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
11 years ago
Oliver Sartun
ab20281c58
The "change" UndoType now rightfully unsets added attributes on undo/redo
11 years ago
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
11 years ago
Oliver Sartun
3829003ad3
Comment slightly changed
11 years ago
Oliver Sartun
46bd67b72b
Added method unregisterAll to unregister all registered objects
11 years ago
Oliver Sartun
1623d0be70
Added a whole lotta comments
11 years ago
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
11 years ago
Oliver Sartun
51a06f7bf1
Typo corrected
...
Jeez! Have I been asleep while writing that?
11 years ago
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.
11 years ago
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
11 years ago
Oliver Sartun
9fa2990957
Bugfix: The undoTypes-object is now stored/referenced per UndoAction
11 years ago
Oliver Sartun
33b05920ea
Added the possibility to start tracking right away by passing {track: true} to the constructor
11 years ago
Oliver Sartun
5ddef62b54
Added tests for 'merge' and the objectRegistry
11 years ago
Oliver Sartun
32d3cf4e60
The objectRegistry and the ownedUndoTypes are now properties of the undoManager and not of the undoStack. This was necessary to get 'merge' running
11 years ago
Oliver Sartun
178d9ecb73
Bugfix: changingUndoType always took effect globally and never per instance. Fixed.
11 years ago
Oliver Sartun
878cea2009
Minor changes to JSDoc comments
11 years ago
Oliver Sartun
1cbb59690f
Fixed bug in objectRegistry's 'get' function
11 years ago
Oliver Sartun
bf6cb099fd
Documented the code by using JSDoc
11 years ago
Oliver Sartun
b2fd78e5d4
Repositioned the manipulateUndoType function
11 years ago
Oliver Sartun
dfef4d0390
Shortened the hasKey function by using _.all
11 years ago
Oliver Sartun
be360f87f9
Repositioned the slice function within the code
11 years ago
Oliver Sartun
e6c376b8c5
Updated Backbone.min.js
11 years ago