OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change: cache system
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
models
/
scroll.js.coffee
diff --git
a/app/assets/javascripts/models/scroll.js.coffee
b/app/assets/javascripts/models/scroll.js.coffee
index
9447642
..
9f39baa
100644
(file)
--- a/
app/assets/javascripts/models/scroll.js.coffee
+++ b/
app/assets/javascripts/models/scroll.js.coffee
@@
-12,10
+12,15
@@
class Pettanr.Scroll extends Peta.Binder
visible: 0
\r
}
\r
\r
visible: 0
\r
}
\r
\r
+ author: () ->
\r
+ new Pettanr.Cache.Retriever(Pettanr.Author, @get('author_id'))
\r
+
\r
+ overwrite: (options) ->
\r
+ operators = options.operators
\r
+ return false if not operators.author
\r
+ @set('author_id', operators.author.id)
\r
+
\r
initialize: () ->
\r
if @id
\r
@url = @url + @id
\r
\r
initialize: () ->
\r
if @id
\r
@url = @url + @id
\r
\r
-class Pettanr.Scroll.Collection extends Backbone.Collection
\r
- model: Pettanr.Scroll
\r
- url: '/scrolls'
\r