1 | #
|
2 | # # Backbone-Relational-Mapper
|
3 | #
|
4 | define (require) ->
|
5 |
|
6 | Backbone = require 'backbone-relational'
|
7 |
|
8 | if window?
|
9 | throw new Error 'Just use the regular Backbone-Relational in the browser.'
|
10 | else
|
11 |
|
12 | Backbone.DB = require './Backbone/DB'
|
13 |
|
14 | Backbone.sync = require './Backbone/sync'
|
15 |
|
16 | # Possible types are presented here for convenience,
|
17 | # but you should use the strings in shared code
|
18 | Backbone.Types =
|
19 | String: 'STRING'
|
20 | Text: 'TEXT'
|
21 | Integer: 'INTEGER'
|
22 | Float: 'FLOAT'
|
23 | Date: 'DATE'
|
24 | Primary: 'PRIMARY'
|
25 |
|
26 | return Backbone
|