Reference to self
This commit is contained in:
@@ -70,13 +70,13 @@ var CouchPotato = new Class({
|
|||||||
[new Element('a.orange', {
|
[new Element('a.orange', {
|
||||||
'text': 'Restart',
|
'text': 'Restart',
|
||||||
'events': {
|
'events': {
|
||||||
'click': App.restart.bind(App)
|
'click': self.restart.bind(self)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
new Element('a.red', {
|
new Element('a.red', {
|
||||||
'text': 'Shutdown',
|
'text': 'Shutdown',
|
||||||
'events': {
|
'events': {
|
||||||
'click': App.shutdown.bind(App)
|
'click': self.shutdown.bind(self)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
new Element('a', {
|
new Element('a', {
|
||||||
|
|||||||
Reference in New Issue
Block a user