OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
js add panel viewer
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
views
/
balloons
/
element.js.coffee
1
class Pettanr.Views.Balloon.Element extends Backbone.View
\r
2
tagName: 'img'
\r
3
className: 'pettanr-balloon'
\r
4
\r
5
initialize: (options) ->
\r
6
@element = options.element
\r
7
@root = options.root
\r
8
@spot = options.spot
\r
9
\r
10
render: () ->
\r
11
attr = {
\r
12
src: @element.system_picture.url(),
\r
13
alt: @element.get('caption')
\r
14
}
\r
15
this.$el.attr(attr)
\r
16
this
\r
17
\r