diff options
author | Valerio Virgillito | 2012-02-02 00:11:51 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-02 00:11:51 -0800 |
commit | 5a305ec44b2bd5198a248357439aae8ebbd75fee (patch) | |
tree | ec3b756beab7105841353ef79d4e8059b2b6a91c /node_modules/montage/core/event/mutable-event.js | |
parent | dbe9c7705860fb3551321e23e7eab763f622241c (diff) | |
download | ninja-5a305ec44b2bd5198a248357439aae8ebbd75fee.tar.gz |
upgrading to Montage v0.6
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/core/event/mutable-event.js')
-rwxr-xr-x | node_modules/montage/core/event/mutable-event.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/montage/core/event/mutable-event.js b/node_modules/montage/core/event/mutable-event.js index edf56951..f94ee0b9 100755 --- a/node_modules/montage/core/event/mutable-event.js +++ b/node_modules/montage/core/event/mutable-event.js | |||
@@ -11,6 +11,9 @@ | |||
11 | var Montage = require("montage").Montage, | 11 | var Montage = require("montage").Montage, |
12 | Enum = require("core/enum").Enum; | 12 | Enum = require("core/enum").Enum; |
13 | 13 | ||
14 | // XXX Does not presently function server-side | ||
15 | if (typeof window !== "undefined") { | ||
16 | |||
14 | var ChangeTypes = exports.ChangeTypes = Enum.create().initWithMembers("MODIFICATION", "ADDITION", "REMOVAL"); | 17 | var ChangeTypes = exports.ChangeTypes = Enum.create().initWithMembers("MODIFICATION", "ADDITION", "REMOVAL"); |
15 | 18 | ||
16 | var _eventConstructorsByType = {}; | 19 | var _eventConstructorsByType = {}; |
@@ -232,3 +235,5 @@ _changeEventConstructor.prototype = MutableEvent.create()._initPrototypeWithEven | |||
232 | */ | 235 | */ |
233 | _changeEventConstructor.prototype.type = "change"; | 236 | _changeEventConstructor.prototype.type = "change"; |
234 | exports._Change = _changeEventConstructor; | 237 | exports._Change = _changeEventConstructor; |
238 | |||
239 | } // client-side | ||