File tree Expand file tree Collapse file tree 4 files changed +21
-23
lines changed Expand file tree Collapse file tree 4 files changed +21
-23
lines changed Original file line number Diff line number Diff line change 2
2
3
3
- Implement ` clojure.data/diff ` on ` datascript/DB ` (#281 )
4
4
- Drop Clojure 1.7 and 1.8 support
5
+ - Fix externs.js syntax (PR #216 , thx @thheller )
5
6
6
7
# 0.16.9
7
8
Original file line number Diff line number Diff line change 174
174
(assoc [d k v] (assoc-datom d k v))
175
175
]))
176
176
177
+ #?(:cljs (goog/exportSymbol " datascript.db.Datom" Datom))
178
+
177
179
(defn ^Datom datom
178
180
([e a v] (Datom. e a v tx0 true ))
179
181
([e a v tx] (Datom. e a v tx true ))
Original file line number Diff line number Diff line change 1
1
var datascript = { } ;
2
2
datascript . db = { } ;
3
- datascript . db . Datom = { } ;
4
- datascript . db . Datom . e = 0 ;
5
- datascript . db . Datom . a = "" ;
6
- datascript . db . Datom . v = "" ;
7
- datascript . db . Datom . tx = 0 ;
8
- datascript . db . Datom . added = true ;
3
+
4
+ /**
5
+ * @constructor
6
+ */
7
+ datascript . db . Datom = function ( ) { } ;
8
+ datascript . db . Datom . prototype . e ;
9
+ datascript . db . Datom . prototype . a ;
10
+ datascript . db . Datom . prototype . v ;
11
+ datascript . db . Datom . prototype . tx ;
12
+ datascript . db . Datom . prototype . added ;
13
+
9
14
10
15
datascript . impl = { } ;
11
16
datascript . impl . entity = { } ;
12
- datascript . impl . entity . Entity = { } ;
13
- datascript . impl . entity . Entity . db = { } ;
14
- datascript . impl . entity . Entity . eid = { } ;
15
17
18
+ /**
19
+ * @constructor
20
+ */
21
+ datascript . impl . entity . Entity = function ( ) { } ;
22
+ datascript . impl . entity . Entity . prototype . db ;
23
+ datascript . impl . entity . Entity . prototype . eid ;
16
24
datascript . impl . entity . Entity . prototype . keys = function ( ) { } ;
17
25
datascript . impl . entity . Entity . prototype . entries = function ( ) { } ;
18
26
datascript . impl . entity . Entity . prototype . values = function ( ) { } ;
Original file line number Diff line number Diff line change 198
198
(vreset! (.-touched e) true )))
199
199
e )
200
200
201
- #?(:cljs (do
202
- (goog/exportSymbol " datascript.impl.entity.Entity.prototype.get" (.-get (.-prototype Entity)))
203
- (goog/exportSymbol " datascript.impl.entity.Entity.prototype.has" (.-has (.-prototype Entity)))
204
- (goog/exportSymbol " datascript.impl.entity.Entity.prototype.forEach" (.-forEach (.-prototype Entity)))
205
- (goog/exportSymbol " datascript.impl.entity.Entity.prototype.key_set" (.-key_set (.-prototype Entity)))
206
- (goog/exportSymbol " datascript.impl.entity.Entity.prototype.value_set" (.-value_set (.-prototype Entity)))
207
- (goog/exportSymbol " datascript.impl.entity.Entity.prototype.entry_set" (.-entry_set (.-prototype Entity)))
208
- (goog/exportSymbol " datascript.impl.entity.Entity.prototype.keys" (.-keys (.-prototype Entity)))
209
- (goog/exportSymbol " datascript.impl.entity.Entity.prototype.values" (.-values (.-prototype Entity)))
210
- (goog/exportSymbol " datascript.impl.entity.Entity.prototype.entries" (.-entries (.-prototype Entity)))
211
-
212
- (goog/exportSymbol " cljs.core.ES6Iterator.prototype.next" (.-next (.-prototype cljs.core/ES6Iterator)))
213
- (goog/exportSymbol " cljs.core.ES6EntriesIterator.prototype.next" (.-next (.-prototype cljs.core/ES6EntriesIterator)))
214
- ))
201
+ #?(:cljs (goog/exportSymbol " datascript.impl.entity.Entity" Entity))
You can’t perform that action at this time.
0 commit comments