aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/data/objectid.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-20 15:04:25 -0700
committerArmen Kesablyan2012-06-20 15:04:25 -0700
commitfc818d31de267d2b77fda3b3029ad38d48698be8 (patch)
tree122ebf54d3378578c1ded4d786ba3940d4a911d2 /node_modules/montage/data/objectid.js
parent120e31dcf1e11eed11ee430d77c438e7b073e9f8 (diff)
parentc9852665eadc1acb9c1c881d207c4bd9ef88805f (diff)
downloadninja-fc818d31de267d2b77fda3b3029ad38d48698be8.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal
Diffstat (limited to 'node_modules/montage/data/objectid.js')
-rwxr-xr-xnode_modules/montage/data/objectid.js77
1 files changed, 0 insertions, 77 deletions
diff --git a/node_modules/montage/data/objectid.js b/node_modules/montage/data/objectid.js
deleted file mode 100755
index 0c679097..00000000
--- a/node_modules/montage/data/objectid.js
+++ /dev/null
@@ -1,77 +0,0 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6/**
7 @module montage/data/objectid
8 @requires montage/core/core
9 @requires montage/core/uuid
10 @requires montage/core/logger
11*/
12var Montage = require("montage").Montage;
13var Uuid = require("core/uuid").Uuid;
14var logger = require("core/logger").logger("objectid");
15/**
16 @class module:montage/data/objectid.ObjectId
17 @extends module:montage/core/core.Montage
18*/
19var ObjectId = exports.ObjectId = Montage.create(Montage,/** @lends module:montage/data/objectid.ObjectId# */ {
20/**
21 Description TODO
22 @type {Property}
23 @default {Boolean} false
24 */
25 isTemporary: {
26 value: false
27 },
28/**
29 Description TODO
30 @type {Property}
31 @default {Object} null
32 */
33 blueprint: {
34 value: null
35 }
36
37});
38/**
39 @class module:montage/data/objectid.TemporaryObjectId
40*/
41var TemporaryObjectId = exports.TemporaryObjectId = Montage.create(ObjectId,/** @lends module:montage/data/objectid.TemporaryObjectId# */ {
42/**
43 Description TODO
44 @type {Property}
45 @default {Boolean} true
46 */
47 isTemporary: {
48 value: true
49 },
50/**
51 Description TODO
52 @private
53*/
54 _uuid: {
55 serializable: true,
56 enumerable: false,
57 value: null
58 },
59/**
60 Description TODO
61 @function
62 @returns itself
63 */
64 init: {
65 serializable: false,
66 enumerable: false,
67 value: function() {
68 this._uuid = Uuid.generate();
69 if (logger.isDebug) {
70 logger.debug(this, "New Temporary Object ID: " + this._uuid);
71 }
72 Object.freeze(this);
73 return this;
74 }
75 }
76
77});