Skip to content

Commit 58ab3e4

Browse files
committedDec 6, 2014
Clarify that LocalStorage needs to be required
1 parent b1fb9b6 commit 58ab3e4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

Diff for: ‎opal/opal-jquery/local_storage.rb

+11
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ module Browser
88
#
99
# ## Usage
1010
#
11+
# LocalStorage is not included by default when you require opal-jquery, so
12+
# you will need to require it explicitly in your code:
13+
#
14+
# require 'opal-jquery'
15+
# require 'opal-jquery/local_storage'
16+
#
17+
# puts LocalStorage
18+
# # => #<LocalStorage>
19+
#
20+
# ## Example Usage
21+
#
1122
# LocalStorage['foo'] = 'hello world'
1223
#
1324
# LocalStorage['foo'] # => "hello world"

0 commit comments

Comments
 (0)
Please sign in to comment.