You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns data's type as a string. Tomes has types that exist in JSON which are:
49
49
- array
50
50
- boolean
@@ -55,13 +55,13 @@ Returns data's type as a string. Tomes has types that exist in JSON which are:
55
55
As well as:
56
56
- undefined
57
57
58
-
###Tome.isTome( *data* )
58
+
###Tome.isTome( *data* )
59
59
Returns a boolean indicating whether data is a Tome or not.
60
60
61
-
###Tome.unTome( *tome* )
61
+
###Tome.unTome( *tome* )
62
62
Returns a regular JavaScript version of your Tome.
63
63
64
-
##TomeTypes
64
+
##TomeTypes
65
65
- ArrayTome
66
66
- BooleanTome
67
67
- NullTome
@@ -70,72 +70,72 @@ Returns a regular JavaScript version of your Tome.
70
70
- StringTome
71
71
- UndefinedTome
72
72
73
-
###Tome.destroy( *tome* )
73
+
###Tome.destroy( *tome* )
74
74
Make a tome and all of it's sub-tomes emit destroy. This will not delete anything.
75
75
76
-
##Methods
76
+
##Methods
77
77
78
-
###assign( *data* )
78
+
###assign( *data* )
79
79
Assign data to a Tome.
80
80
81
-
###set( *key*, *data* )
81
+
###set( *key*, *data* )
82
82
Assign data to key on a Tome. Set will create a Tome on the key if it does not exist.
83
83
84
-
###del( *key* )
84
+
###del( *key* )
85
85
Delete a key from a Tome.
86
86
87
-
###swap( *key*, *tome* )
87
+
###swap( *key*, *tome* )
88
88
Swap key with tome.
89
89
90
-
###rename( *key*, *newkey* )
90
+
###rename( *key*, *newkey* )
91
91
Rename key to newkey.
92
92
93
-
###move( *key*, *tome*, [*newkey*] )
93
+
###move( *key*, *tome*, [*newkey*] )
94
94
Move key to tome. Optionally call it newkey on that tome.
95
95
96
-
###read( )
96
+
###read( )
97
97
Get a single change operation from the root Tome, removing it in the process. Returns null if there are no changes.
98
98
99
-
###readAll( )
99
+
###readAll( )
100
100
Get all change operations from the Tome
101
101
102
-
###merge( *diff* )
102
+
###merge( *diff* )
103
103
Applies a change operation or an array of change operations to a Tome.
104
104
105
-
###destroy( )
105
+
###destroy( )
106
106
Makes the tome and all of it's sub-tomes emit destroy. Does not delete anything.
107
107
108
-
###unTome( )
108
+
###unTome( )
109
109
Returns a regular javascript version of your Tome.
110
110
111
-
###getKey( )
111
+
###getKey( )
112
112
Returns a Tome's key.
113
113
114
-
###getParent( )
114
+
###getParent( )
115
115
Returns a Tome's parent Tome.
116
116
117
-
###getVersion( )
117
+
###getVersion( )
118
118
Returns a Tome's version.
119
119
120
-
###is( *value* )
120
+
###is( *value* )
121
121
Returns a boolean value indicating whether or not the Tome is observably indistinguishable from value ([ref](http://wiki.ecmascript.org/doku.php?id=harmony:egal)). If no value is given, returns whether or not the Tome's value is truthy.
122
122
123
-
###isDirty( )
123
+
###isDirty( )
124
124
Returns whether a Tome has been changed, but the change has not been read.
125
125
126
-
##Events
126
+
##Events
127
127
128
-
###add( *key* )
128
+
###add( *key* )
129
129
Emitted when a Tome receives a new key.
130
130
131
-
###del( *key* )
131
+
###del( *key* )
132
132
Emitted when a key is deleted from a Tome.
133
133
134
-
###destroy( )
134
+
###destroy( )
135
135
Emitted when a Tome is deleted. Removes all event listeners for this Tome.
136
136
137
-
###readable( *was* )
137
+
###readable( *was* )
138
138
Emitted every time a Tome or any of its child Tomes are altered. If the Tome was a primitive (ie. string, number, or boolean) the previous value will be emitted as well, but only if it did not change types.
139
139
140
-
###typeChange( *tome*, *oldType*, *newType* )
140
+
###typeChange( *tome*, *oldType*, *newType* )
141
141
Emitted by the root tome when a Tome changes type.
0 commit comments