 
   # Internal: Reference to the global localStorage object.
   @localStorage: window.localStorage
+
+  @isSupported: ->
+    try "localStorage" in window && window["localStorage"] != null
+    catch e then false    
 
   # Public: Get the current time as a unix timestamp in
   # milliseconds.

    try
      Store.localStorage.setItem @prefixed(key), value
    catch error
      this.publish 'error', [error, key, value, this]
    this

  # Public: Removes the key from the localStorage.

#   store.remove("name")
#
# Returns a new instance of Store.
Annotator.Readmill.Store = class Store extends Annotator.Class

  # Internal: Prefix for all keys stored by the store.
  @KEY_PREFIX: "annotator.readmill/"
