OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
view
/
link.js.coffee
1
class Pettanr.View.Link extends Tag.A
\r
2
\r
3
constructor: (@url, @content, options) ->
\r
4
super(options)
\r
5
\r
6
initialize: (options) ->
\r
7
@class_name = options.class_name
\r
8
super({
\r
9
attr: {href: @url},
\r
10
class_name: @class_name,
\r
11
content: @content
\r
12
})
\r
13
\r
14
render: () ->
\r
15
super()
\r
16
this
\r
17
\r
18
click: () ->
\r
19
if confirm('leave?')
\r
20
return true
\r
21
else
\r
22
return false
\r
23
\r