Skip to content

Commit

Permalink
Merge branch 'r1504' into r1504.mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
denlapaev committed Apr 15, 2015
2 parents 23621a4 + 30a4654 commit 4f340d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cache/TabSync.coffee
Expand Up @@ -15,7 +15,7 @@ define [

constructor: ->
# Set of futures awaitng for localStorage event
_awaitingKeys = {}
@_awaitingKeys = {}


init: ->
Expand Down Expand Up @@ -91,6 +91,6 @@ define [


_handleStorageEvent: (event) =>
key = event.originalEvent.key
value = event.originalEvent.newValue
key = event.key
value = event.newValue
_.each(@_awaitingKeys[key], (waitingPromise) -> waitingPromise.resolve(value))

0 comments on commit 4f340d9

Please sign in to comment.