Sha256: 29008195c525b7912148ac2435fab1eea25bbe1c126aae6a8d7266140fccbe6c

Contents?: true

Size: 534 Bytes

Versions: 9

Compression:

Stored size: 534 Bytes

Contents

namespacedTemplates = ->
  h = {}
  for name, func of window.HandlebarsTemplates
    if name.match( /\// )
      nesting = h
      parts = name.split('/')
      while (part = parts.shift())
        if parts.length == 0
          nesting[part] = func
        else
          nesting[part] ||= {}
          nesting = nesting[part]
    else
      h[name] = func
  h

_.extend( window.App, {
  mobile: navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i)
  Templates: namespacedTemplates().auto_error
  Views: {}
} )

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
auto_error-0.0.9 app/assets/javascripts/auto_error/app_errors/configure.coffee
auto_error-0.0.8 app/assets/javascripts/auto_error/app_errors/configure.coffee
auto_error-0.0.7 app/assets/javascripts/auto_error/app_errors/configure.coffee
auto_error-0.0.6 app/assets/javascripts/auto_error/app_errors/configure.coffee
auto_error-0.0.5 app/assets/javascripts/auto_error/app_errors/configure.coffee
auto_error-0.0.4 app/assets/javascripts/auto_error/app_errors/configure.coffee
auto_error-0.0.3 app/assets/javascripts/auto_error/app_errors/configure.coffee
auto_error-0.0.2 app/assets/javascripts/auto_error/app_errors/configure.coffee
auto_error-0.0.1 app/assets/javascripts/auto_error/app_errors/configure.coffee