Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fixed referencing to this.action.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Feb 15, 2009
1 parent 18be504 commit d4b8459
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/MooEditable/MooEditable.js
Expand Up @@ -772,11 +772,11 @@ MooEditable.UI.Button = new Class({

render: function(){
var self = this;
var act = MooEditable.Actions[action];
var act = MooEditable.Actions[this.action];
this.el = new Element('button', {
'class': action + '-button toolbar-button ' + act.mode || self.editor.options.mode,
'class': self.action + '-button toolbar-button ' + act.mode || self.editor.options.mode,
title: act.title + ((act.shortcut) ? ' ( Ctrl+' + act.shortcut.toUpperCase() + ' )' : ''),
text: act.title || action,
text: act.title || self.action,
events: {
click: self.click.bind(self),
mousedown: function(e){ e.stop(); }
Expand Down

0 comments on commit d4b8459

Please sign in to comment.