Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15352

Fix browser console safety-check

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.5.1
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      It doesn't work to say console && console.log as a safety check because you can't safely access an undefined variable in js, resulting in a hard crash.
      This is a pain for developers, so I'm adding a small CRM.console wrapper to smooth over the browser incompatibilities.

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              colemanw Coleman Watts
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: