Permalink
Browse files

Merge pull request #8 from change/pm-add-friend-options

Pm add friend options
@alif reviewed
  • Loading branch information...
2 parents 9d05c98 + e1f39ab commit f212d6d7e36bc21e6053cd970746e1d94a6be9eb Praneeta Mhatre committed Jan 29, 2014
Showing with 13 additions and 5 deletions.
  1. +2 −0 Gemfile
  2. +5 −2 bin/facebook-stub.js
  3. +5 −2 lib/assets/javascripts/facebook_stub/core.js
  4. +1 −1 lib/facebook_stub/version.rb
View
@@ -1,4 +1,6 @@
source "http://rubygems.org"
+ruby '1.9.3'
+
# Specify your gem's dependencies in facebook-stub.gemspec
gemspec
View
@@ -406,9 +406,12 @@
FBWorld.state('connected', false);
}
- function addFriend(id, name) {
+ function addFriend(id, name, options) {
var friends = FBWorld.friendList();
- friends.push({id: id, name: name});
+ var extendedOptions = options || {}
+ extendedOptions.id = id;
+ extendedOptions.name = name;
+ friends.push(extendedOptions);
FBWorld.Helpers.makeMeACookie('fb_friends', JSON.stringify(friends), cookieOptions);
}
@@ -406,9 +406,12 @@
FBWorld.state('connected', false);
}
- function addFriend(id, name) {
+ function addFriend(id, name, options) {
var friends = FBWorld.friendList();
- friends.push({id: id, name: name});
+ var extendedOptions = options || {}
+ extendedOptions.id = id;
+ extendedOptions.name = name;
+ friends.push(extendedOptions);
FBWorld.Helpers.makeMeACookie('fb_friends', JSON.stringify(friends), cookieOptions);
}
@@ -1,3 +1,3 @@
module FacebookStub
- VERSION = "0.0.2.0"
+ VERSION = "0.0.2.1"
end

0 comments on commit f212d6d

Please sign in to comment.