litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/localstorage/Html5LocalStorageImpl.java
|
@@ -2,8 +2,7 @@ |
2 |
2 |
|
|
3 |
3 |
|
import org.litesoft.commonfoundation.annotations.*; |
4 |
4 |
|
|
5 |
|
- |
public class Html5LocalStorageImpl implements Html5LocalStorage |
6 |
|
- |
{ |
|
5 |
+ |
public class Html5LocalStorageImpl implements Html5LocalStorage { |
7 |
6 |
|
/** |
8 |
7 |
|
* Return the number of key/value pairs currently present. |
9 |
8 |
|
*/ |
|
@@ -51,7 +50,7 @@ |
51 |
50 |
|
* There are two reasons that the new key/value pair might not be able to be stored: either the |
52 |
51 |
|
* the user has disabled storage for the site, or the quota has been exceeded. |
53 |
52 |
|
* |
54 |
|
- |
* @param key non-null key to store (any whitespace in the key has un-specified behavior). |
|
53 |
+ |
* @param key non-null key to store (any whitespace in the key has un-specified behavior). |
55 |
54 |
|
* @param value non-null value to store/associate with the key. |
56 |
55 |
|
* |
57 |
56 |
|
* @return true if the key/value pair was successfully stored. |
|
@@ -63,7 +62,7 @@ |
63 |
62 |
|
$wnd.localStorage.setItem( key, value ); |
64 |
63 |
|
return true; |
65 |
64 |
|
} |
66 |
|
- |
catch(err) // QuotaExceededError? |
|
65 |
+ |
catch ( err ) // QuotaExceededError? |
67 |
66 |
|
{ |
68 |
67 |
|
return false; |
69 |
68 |
|
} |