summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2020-03-06 10:41:26 -0600
committerathenian200 <athenian200@outlook.com>2020-03-06 10:41:26 -0600
commitadcbc7934a9d3945731fa2da7c120518da5e2eb8 (patch)
tree592ede7ba023b36a8e2965aef6a249e913852112
parent7299c552ec11f62f4b411ccc1f95c574373e1efe (diff)
downloadbasilisk-adcbc7934a9d3945731fa2da7c120518da5e2eb8.tar.gz
Issue MoonchildProductions/UXP#516 - Remove named function syntax from basilisk/components/newtab.
-rw-r--r--basilisk/components/newtab/PlacesProvider.jsm12
1 files changed, 6 insertions, 6 deletions
diff --git a/basilisk/components/newtab/PlacesProvider.jsm b/basilisk/components/newtab/PlacesProvider.jsm
index f478b5c..fe2b1cf 100644
--- a/basilisk/components/newtab/PlacesProvider.jsm
+++ b/basilisk/components/newtab/PlacesProvider.jsm
@@ -52,18 +52,18 @@ Links.prototype = {
* All history events are emitted from this object.
*/
historyObserver: {
- onDeleteURI: function historyObserver_onDeleteURI(aURI) {
+ onDeleteURI: function(aURI) {
// let observers remove sensetive data associated with deleted visit
gLinks.emit("deleteURI", {
url: aURI.spec,
});
},
- onClearHistory: function historyObserver_onClearHistory() {
+ onClearHistory: function() {
gLinks.emit("clearHistory");
},
- onFrecencyChanged: function historyObserver_onFrecencyChanged(aURI,
+ onFrecencyChanged: function(aURI,
aNewFrecency, aGUID, aHidden, aLastVisitDate) { // jshint ignore:line
// The implementation of the query in getLinks excludes hidden and
// unvisited pages, so it's important to exclude them here, too.
@@ -78,13 +78,13 @@ Links.prototype = {
}
},
- onManyFrecenciesChanged: function historyObserver_onManyFrecenciesChanged() {
+ onManyFrecenciesChanged: function() {
// Called when frecencies are invalidated and also when clearHistory is called
// See toolkit/components/places/tests/unit/test_frecency_observers.js
gLinks.emit("manyLinksChanged");
},
- onTitleChanged: function historyObserver_onTitleChanged(aURI, aNewTitle) {
+ onTitleChanged: function(aURI, aNewTitle) {
if (NewTabUtils.linkChecker.checkLoadURI(aURI.spec)) {
gLinks.emit("linkChanged", {
url: aURI.spec,
@@ -101,7 +101,7 @@ Links.prototype = {
* Must be called before the provider is used.
* Makes it easy to disable under pref
*/
- init: function PlacesProvider_init() {
+ init: function() {
try {
PlacesUtils.history.addObserver(this.historyObserver, true);
} catch (e) {