       if file.previewElement
         file.previewElement.classList.add "dz-error"
         message = message.error if typeof message != "String" and message.error
-        node.textContent = message for node in file.previewElement.querySelectorAll("[data-dz-errormessage]")
+        node.textContent = message for node in file.previewElement.querySelectorAll(
+          "[data-dz-errormessage]")
 
     errormultiple: noop
 

  for validType in acceptedFiles
    validType = validType.trim()
    if validType.charAt(0) == "."
      return yes if file.name.toLowerCase().indexOf(validType.toLowerCase(), file.name.length - validType.length) != -1
    else if /\/\*$/.test validType
      # This is something like a image/* mime type
      return yes if baseMimeType == validType.replace /\/.*$/, ""

  else if els.nodeType?
    elements = [ els ]

  throw new Error "Invalid `#{name}` option provided. Please provide a CSS selector, a plain " +
    "HTML element or a list of those." unless elements? and elements.length

  return elements

