@castlabs/ui 7.6.1 → 7.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -483,7 +483,7 @@ function clFormIsValid (id) {
483
483
  const form = document.querySelector(`#${id}`)
484
484
  if (!form) {
485
485
  // not a form at all
486
- console.error("can't find/validate form", id)
486
+ console.error('cant find/validate form', id)
487
487
  return false
488
488
  }
489
489
 
@@ -518,7 +518,7 @@ async function clFormIsValidAsync (id) {
518
518
  const form = document.getElementById(id)
519
519
  if (!form) {
520
520
  // not a form at all
521
- console.error("can't find/validate form", id)
521
+ console.error('cant find/validate form', id)
522
522
  return Promise.resolve(false)
523
523
  }
524
524
 
@@ -806,7 +806,7 @@ function _getProperty (object, property) {
806
806
  * @return {Object[]} Sorted array.
807
807
  */
808
808
  function clSort (original, property, order = 'ASC', caseSensitive = false) {
809
- if (!original) return [] // can't sort null/undefined/...
809
+ if (!original) return [] // cant sort null/undefined/...
810
810
  const copy = typeof original === 'function' ? [...original()] : [...original]
811
811
 
812
812
  const cmp = (a, b) => a.localeCompare(b, undefined, { ignorePunctuation: true })