commit c1109ee95fc98c666b90442c428497b5f3b23f10
parent 7eb8683c06f0043a7557e76e01027db45ef3f447
Author: Davide Cervone <dpvc@union.edu>
Date: Fri, 6 Aug 2010 10:49:15 +0000
Fix problem with Show Source not opening a window in Firefox. (Resolves half od the issues in bug 3040088)
git-svn-id: https://mathjax.svn.sourceforge.net/svnroot/mathjax/trunk@565 b8fd5906-0fad-46e2-a0d3-10d94ff285d1
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/mathjax/unpacked/extensions/MathMenu.js b/mathjax/unpacked/extensions/MathMenu.js
@@ -24,6 +24,8 @@
*/
(function (HUB,HTML,AJAX) {
+ var VERSION = "1.0.1";
+
var isPC = HUB.Browser.isPC, isMSIE = HUB.Browser.isMSIE;
var ROUND = (isPC ? null : "5px");
@@ -130,6 +132,7 @@
* The main menu class
*/
var MENU = MathJax.Menu = MathJax.Object.Subclass({
+ version: VERSION,
items: [],
posted: false,
title: null,
@@ -333,7 +336,7 @@
},
Label: function (def,menu) {return [this.name]},
Mouseup: function (event,menu) {
- if (!this.disabled) {this.Remove(event,menu); this.action.call(this)}
+ if (!this.disabled) {this.Remove(event,menu); this.action.call(this,event)}
return this.False(event);
}
});
@@ -553,7 +556,7 @@
MENU.ShowSource.Window(event); // WeBKit needs to open window on click event
MathJax.Callback.Queue(
AJAX.Require("[MathJax]/extensions/toMathML.js"),
- function () {delete AJAX.loadingToMenu},
+ function () {delete AJAX.loadingToMathML},
[this,arguments.callee,EVENT] // call this function again
);
return;