diff options
author | Jose Antonio Marquez | 2012-04-24 10:06:53 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-04-24 10:06:53 -0700 |
commit | 4c15e77bdb7f4e0558f3749994a8a37b207b97ae (patch) | |
tree | 593ab4917fb5cc3ef8ee36822b56c6edd30c33a5 /node_modules/montage/core/undo-manager.js | |
parent | 36d50b6599ab98559c76e1fe57b1bb131c4433da (diff) | |
parent | 55e6d621b9555abac06ab4adff44dfe29a78ec4e (diff) | |
download | ninja-4c15e77bdb7f4e0558f3749994a8a37b207b97ae.tar.gz |
Merge branch 'refs/heads/Ninja-Internal' into Document
Diffstat (limited to 'node_modules/montage/core/undo-manager.js')
-rw-r--r-- | node_modules/montage/core/undo-manager.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/node_modules/montage/core/undo-manager.js b/node_modules/montage/core/undo-manager.js index cd97ee59..7335df77 100644 --- a/node_modules/montage/core/undo-manager.js +++ b/node_modules/montage/core/undo-manager.js | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | var Montage = require("montage").Montage; | 9 | var Montage = require("montage").Montage; |
10 | 10 | ||
11 | exports.UndoManager = Montage.create(Montage, { | 11 | var UndoManager = exports.UndoManager = Montage.create(Montage, { |
12 | 12 | ||
13 | enabled: { | 13 | enabled: { |
14 | value: true | 14 | value: true |
@@ -238,3 +238,13 @@ exports.UndoManager = Montage.create(Montage, { | |||
238 | } | 238 | } |
239 | 239 | ||
240 | }); | 240 | }); |
241 | |||
242 | var _defaultUndoManager = null; | ||
243 | Montage.defineProperty(exports, "defaultUndoManager", { | ||
244 | get: function() { | ||
245 | if (!_defaultUndoManager) { | ||
246 | _defaultUndoManager = UndoManager.create(); | ||
247 | } | ||
248 | return _defaultUndoManager; | ||
249 | } | ||
250 | }); | ||