[gnome-weather] Fix a warning in param.js
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather] Fix a warning in param.js
- Date: Sat, 4 May 2013 13:57:53 +0000 (UTC)
commit d863231c95f4a9a1695f8c837d49cac4287b6657
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sat May 4 15:28:23 2013 +0200
Fix a warning in param.js
I must remember to fix this if I merge it in gjs...
src/params.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/params.js b/src/params.js
index 4b8e1c4..4bbade0 100644
--- a/src/params.js
+++ b/src/params.js
@@ -78,7 +78,7 @@ function parse(params, defaults) {
// Return value: a new object, containing the merged parameters from
// @params and @defaults
function fill(params, defaults) {
- let ret = {};
+ let ret = {}, prop;
params = params || {};
for (prop in params)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]