Skip to content

Commit

Permalink
Fix issue on IE when using Object.constructor.name.
Browse files Browse the repository at this point in the history
  • Loading branch information
jalopezsilva committed Jun 30, 2015
1 parent ffbe441 commit 168d8f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/scripts/mixins/StoreMixin.coffee
Expand Up @@ -2,13 +2,13 @@

StoreMixin = (stores...)->
last = stores[stores.length-1]
handlerName = if last.constructor.name == "Object" and last.handlerName?
last.handlerName
handlerName = if last.handler?
last.handler
else
"onChange"

_store = (storeInfo)->
if storeInfo.constructor.name == "Object"
if storeInfo.store?
[storeInfo.store, storeInfo.handler or handlerName]
else
[storeInfo, handlerName]
Expand Down

0 comments on commit 168d8f2

Please sign in to comment.