mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 16:57:30 +09:00
[Pale-Moon] Issue MoonchildProductions/UXP#516 - Remove named function syntax from palemoon/components/newtab.
This commit is contained in:
parent
f5a1756738
commit
3d1be0ea0f
12 changed files with 82 additions and 82 deletions
|
|
@ -33,7 +33,7 @@ var gDrag = {
|
|||
* @param aSite The site that's being dragged.
|
||||
* @param aEvent The 'dragstart' event.
|
||||
*/
|
||||
start: function Drag_start(aSite, aEvent) {
|
||||
start: function (aSite, aEvent) {
|
||||
this._draggedSite = aSite;
|
||||
|
||||
// Mark nodes as being dragged.
|
||||
|
|
@ -66,7 +66,7 @@ var gDrag = {
|
|||
* @param aSite The site that's being dragged.
|
||||
* @param aEvent The 'drag' event.
|
||||
*/
|
||||
drag: function Drag_drag(aSite, aEvent) {
|
||||
drag: function (aSite, aEvent) {
|
||||
// Get the viewport size.
|
||||
let {clientWidth, clientHeight} = document.documentElement;
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ var gDrag = {
|
|||
* @param aSite The site that's being dragged.
|
||||
* @param aEvent The 'dragend' event.
|
||||
*/
|
||||
end: function Drag_end(aSite, aEvent) {
|
||||
end: function (aSite, aEvent) {
|
||||
let nodes = gGrid.node.querySelectorAll("[dragged]")
|
||||
for (let i = 0; i < nodes.length; i++)
|
||||
nodes[i].removeAttribute("dragged");
|
||||
|
|
@ -106,7 +106,7 @@ var gDrag = {
|
|||
* @param aEvent The drag event to check.
|
||||
* @return Whether we should handle this drag and drop operation.
|
||||
*/
|
||||
isValid: function Drag_isValid(aEvent) {
|
||||
isValid: function (aEvent) {
|
||||
let link = gDragDataHelper.getLinkFromDragEvent(aEvent);
|
||||
|
||||
// Check that the drag data is non-empty.
|
||||
|
|
@ -125,7 +125,7 @@ var gDrag = {
|
|||
* @param aSite The site that's being dragged.
|
||||
* @param aEvent The 'dragstart' event.
|
||||
*/
|
||||
_setDragData: function Drag_setDragData(aSite, aEvent) {
|
||||
_setDragData: function (aSite, aEvent) {
|
||||
let {url, title} = aSite;
|
||||
|
||||
let dt = aEvent.dataTransfer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue