OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
00d03fc606661620ea87e4a58473199e05546381
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
models
/
sheet_panel.js.coffee
1
class Pettanr.SheetPanel extends Peta.Leaf
\r
2
url: '/sheet_panels/'
\r
3
\r
4
@singular: () ->
\r
5
'SheetPanel'
\r
6
\r
7
@plural: () ->
\r
8
'SheetPanels'
\r
9
\r
10
defaults: {
\r
11
id: null,
\r
12
x: 15,
\r
13
y: 15,
\r
14
sheet_id: null,
\r
15
panel_id: null,
\r
16
z: 1,
\r
17
t: null
\r
18
}
\r
19
\r
20
sheet: () ->
\r
21
new Pettanr.Sheet({id: @get('sheet_id')})
\r
22
\r
23
panel: () ->
\r
24
new Pettanr.Panel({id: @get('panel_id')})
\r
25
\r
26
initialize: (attr = {}, options = {}) ->
\r
27
super(attr, options)
\r
28
if @id
\r
29
@url = @url + @id
\r
30
\r