Permalink
Browse files

Support {"uri:...} and {"url":...} options because I always try those…

… first
  • Loading branch information...
1 parent 9764350 commit 4ba0f882abca9af6f2c67f630c31cc9ea6dd75d4 @jhs jhs committed Mar 22, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/feed.js
View
5 lib/feed.js
@@ -57,6 +57,11 @@ function Feed (opts) {
opts = opts || {};
if(typeof opts === 'string')
opts = {'db': opts};
+
+ opts.db = opts.db || opts.url || opts.uri
+ delete opts.url
+ delete opts.uri
+
Object.keys(opts).forEach(function(key) {
self[key] = opts[key];
})

0 comments on commit 4ba0f88

Please sign in to comment.