Skip to content

Commit ce26192

Browse files
committedFeb 5, 2014
Fix Localstorage#[]= to return value
1 parent eab45e2 commit ce26192

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎opal/opal-jquery/local_storage.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ def initialize(storage)
55
end
66

77
def []=(key, value)
8-
`#@storage.setItem(key, value)`
8+
%x{
9+
#@storage.setItem(key, value);
10+
return value;
11+
}
912
end
1013

1114
def [](key)

0 commit comments

Comments
 (0)
Please sign in to comment.