phonegap/phonegap-plugins — pull request #808 by Ranhiru (2012-09-26 07:39:19+00:00)
Title: Fixed invalid check in set and added clear option

Currently the "set" method checks whether the shared preferences has that value already with

```java
if (sharedPrefs.contains(key))
```

which makes set method unable to be used to set a new value. The additonal check is incorrect, IMO.

Also added the code to clear all the shared preferences.