diff options
author | Nivesh Rajbhandari | 2012-04-25 13:34:04 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-25 13:34:04 -0700 |
commit | 32a24988add5ba0ecf80caa31871cdd90e3eea5b (patch) | |
tree | fbf05f2dfc91e57ab9598046ff16798ea0ae1966 /node_modules/montage/core/undo-manager.js | |
parent | 60d6346a78fb5257eaf36f17a5fcb764a342c012 (diff) | |
parent | d3a6350163ada5644d34ed8d5c2a00cef4db2afc (diff) | |
download | ninja-32a24988add5ba0ecf80caa31871cdd90e3eea5b.tar.gz |
Merge branch 'refs/heads/ninja-internal' into WebGLMaterials
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 | }); | ||