Skip to content


Fix Localstorage#[]= to return value
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Feb 5, 2014
1 parent eab45e2 commit ce26192
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion opal/opal-jquery/local_storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ def initialize(storage)

def []=(key, value)
`#@storage.setItem(key, value)`
#@storage.setItem(key, value);
return value;

def [](key)
Expand Down

0 comments on commit ce26192

Please sign in to comment.