Commit a9cc13a0 authored by Randall Leeds's avatar Randall Leeds

Support memory storage removeKey

parent 23cd214d
...@@ -31,6 +31,8 @@ privacy = ['$window', ($window) -> ...@@ -31,6 +31,8 @@ privacy = ['$window', ($window) ->
if key of memoryStorage then memoryStorage[key] else null if key of memoryStorage then memoryStorage[key] else null
setItem: (key, value) -> setItem: (key, value) ->
memoryStorage[key] = value memoryStorage[key] = value
removeItem: (key) ->
delete memoryStorage[key]
link: (scope, elem, attrs, controller) -> link: (scope, elem, attrs, controller) ->
return unless controller? return unless controller?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment