 
 
   reviveCredential: (identifier, templateId) ->
+
+    return  if templateId in @_loadedTemplates
 
     @editor.setClass 'loading'
     @logs.add 'loading custom variables'

          return kd.warn err

        @logs.add 'custom variables loaded'

        { meta } = data
        if (Object.keys meta).length
          content = if rawContent = meta.__rawContent
          then rawContent
          else (jsonToYaml meta).content

          @editor.setContent unescape content

module.exports = class VariablesController extends BaseController


  constructor: (options = {}, data ) ->

    super options, data

    @_loadedTemplates = []


  setData: (data) ->

    super data
