Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replace arguments with ...args.
This makes the _log and _error type signatures match the ones in
LegacyElementMixin.
  • Loading branch information
aomarks committed Aug 12, 2018
1 parent 62d8f21 commit 97de848
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app-storage-behavior.js
Expand Up @@ -334,36 +334,36 @@ export const AppStorageBehavior = {
/**
* A wrapper around `console.log`.
*/
_log: function() {
_log: function(...args) {
if (this.log) {
console.log.apply(console, arguments);
console.log.apply(console, args);
}
},

/**
* A wrapper around `console.error`.
*/
_error: function() {
_error: function(...args) {
if (this.log) {
console.error.apply(console, arguments);
console.error.apply(console, args);
}
},

/**
* A wrapper around `console.group`.
*/
_group: function() {
_group: function(...args) {
if (this.log) {
console.group.apply(console, arguments);
console.group.apply(console, args);
}
},

/**
* A wrapper around `console.groupEnd`.
*/
_groupEnd: function() {
_groupEnd: function(...args) {
if (this.log) {
console.groupEnd.apply(console, arguments);
console.groupEnd.apply(console, args);
}
},

Expand Down

0 comments on commit 97de848

Please sign in to comment.