minor #14299 [2.3] Fix javascript (SpacePossum)
This PR was merged into the 2.3 branch.
Discussion
----------
[2.3] Fix javascript
| Q | A
| ------------- | ---
| Bug fix? |yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| License | MIT
Remove dead code and add missing semicolons.
Commits
-------
df76126
Fix javascript
This commit is contained in:
commit
c764a84a27
@ -103,13 +103,13 @@
|
|||||||
return dict.hasOwnProperty(key)
|
return dict.hasOwnProperty(key)
|
||||||
? dict[key]
|
? dict[key]
|
||||||
: null;
|
: null;
|
||||||
}
|
};
|
||||||
|
|
||||||
this.set = function(key, value) {
|
this.set = function(key, value) {
|
||||||
dict[key] = value;
|
dict[key] = value;
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -383,7 +383,7 @@
|
|||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
function canvasAutoUpdateOnResizeAndSubmit(e) {
|
function canvasAutoUpdateOnResizeAndSubmit(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -98,9 +98,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
toggle: function(selector, elOn, elOff) {
|
toggle: function(selector, elOn, elOff) {
|
||||||
var i,
|
var tmp = elOn.style.display,
|
||||||
style,
|
|
||||||
tmp = elOn.style.display,
|
|
||||||
el = document.getElementById(selector);
|
el = document.getElementById(selector);
|
||||||
|
|
||||||
elOn.style.display = elOff.style.display;
|
elOn.style.display = elOff.style.display;
|
||||||
|
@ -121,7 +121,7 @@
|
|||||||
for (elem in menuItems) {
|
for (elem in menuItems) {
|
||||||
if (typeof(menuItems[elem].children) !== 'undefined' &&
|
if (typeof(menuItems[elem].children) !== 'undefined' &&
|
||||||
menuItems[elem].children.length > 0) {
|
menuItems[elem].children.length > 0) {
|
||||||
child = menuItems[elem].children[0]
|
child = menuItems[elem].children[0];
|
||||||
|
|
||||||
if ('' === child.getAttribute('title') ||
|
if ('' === child.getAttribute('title') ||
|
||||||
null === child.getAttribute('title')) {
|
null === child.getAttribute('title')) {
|
||||||
|
Reference in New Issue
Block a user