   open: (cid, updateHistory) ->
     addClass @overlay, 'choco-show'
     addClass document.body, 'choco-body'
-    getEnv() if not env.shift < 1
+    getEnv() if env.shift is 0
     @updateDimensions()
     @select cid, updateHistory
     @


    @options = merge defaultOptions, options

    #@storage = new ChocolateStorage @options.repeat
    @storage = new ChocolateStorage false

    template = templates['overlay']
    template = template.replace '{{spinner}}', templates['spinner']



  select: (item, updateHistory = true) ->

    if typeof item is 'number'
      item = @storage.get item

