diff --git a/Backbone.Undo.js b/Backbone.Undo.js index 5bf8b42..0259500 100644 --- a/Backbone.Undo.js +++ b/Backbone.Undo.js @@ -638,6 +638,13 @@ this.set("track", false); this.stack.track = false; }, + /** + * Return the state of the tracking + * @return {boolean} + */ + isTracking: function () { + return this.get("track"); + }, /** * This is the "all"-handler which is bound to registered * objects. It creates an UndoAction from the event and adds