Commit e7d45bc1 authored by hass's avatar hass

Issue #2684269 by hass: Add curly quotes to param types

parent c1be93c8
......@@ -121,12 +121,12 @@
/**
* Check whether the hostname is part of the cross domains or not.
*
* @param string hostname
* @param {string} hostname
* The hostname of the clicked URL.
* @param array crossDomains
* @param {array} crossDomains
* All cross domain hostnames as JS array.
*
* @return boolean
* @return {boolean} isCrossDomain
*/
Drupal.google_analytics.isCrossDomain = function (hostname, crossDomains) {
return $.inArray(hostname, crossDomains) > -1 ? true : false;
......@@ -135,10 +135,10 @@
/**
* Check whether this is a download URL or not.
*
* @param string url
* @param {string} url
* The web url to check.
*
* @return boolean
* @return {boolean} isDownload
*/
Drupal.google_analytics.isDownload = function (url) {
var isDownload = new RegExp("\\.(" + drupalSettings.google_analytics.trackDownloadExtensions + ")([\?#].*)?$", "i");
......@@ -148,10 +148,10 @@
/**
* Check whether this is an absolute internal URL or not.
*
* @param string url
* @param {string} url
* The web url to check.
*
* @return boolean
* @return {boolean} isInternal
*/
Drupal.google_analytics.isInternal = function (url) {
var isInternal = new RegExp("^(https?):\/\/" + window.location.host, "i");
......@@ -164,10 +164,10 @@
* URL types:
* - gotwo.module /go/* links.
*
* @param string url
* @param {string} url
* The web url to check.
*
* @return boolean
* @return {boolean} isInternalSpecial
*/
Drupal.google_analytics.isInternalSpecial = function (url) {
var isInternalSpecial = new RegExp("(\/go\/.*)$", "i");
......@@ -181,10 +181,10 @@
* - http://mydomain.com/node/1 -> /node/1
* - http://example.com/foo/bar -> http://example.com/foo/bar
*
* @param string url
* @param {string} url
* The web url to check.
*
* @return string
* @return {string} getPageUrl
* Internal website URL.
*/
Drupal.google_analytics.getPageUrl = function (url) {
......@@ -195,10 +195,10 @@
/**
* Extract the download file extension from the URL.
*
* @param string url
* @param {string} url
* The web url to check.
*
* @return string
* @return {string} getDownloadExtension
* The file extension of the passed url. e.g. "zip", "txt"
*/
Drupal.google_analytics.getDownloadExtension = function (url) {
......
......@@ -102,12 +102,12 @@
/**
* Check whether the hostname is part of the cross domains or not.
*
* @param string hostname
* @param {string} hostname
* The hostname of the clicked URL.
* @param array crossDomains
* @param {array} crossDomains
* All cross domain hostnames as JS array.
*
* @return boolean
* @return {boolean} isCrossDomain
*/
Drupal.google_analytics.isCrossDomain = function (hostname, crossDomains) {
return $.inArray(hostname, crossDomains) > -1 ? true : false;
......@@ -116,10 +116,10 @@
/**
* Check whether this is a download URL or not.
*
* @param string url
* @param {string} url
* The web url to check.
*
* @return boolean
* @return {boolean} isDownload
*/
Drupal.google_analytics.isDownload = function (url) {
var isDownload = new RegExp("\\.(" + drupalSettings.google_analytics.trackDownloadExtensions + ")([\?#].*)?$", "i");
......@@ -129,10 +129,10 @@
/**
* Check whether this is an absolute internal URL or not.
*
* @param string url
* @param {string} url
* The web url to check.
*
* @return boolean
* @return {boolean} isInternal
*/
Drupal.google_analytics.isInternal = function (url) {
var isInternal = new RegExp("^(https?):\/\/" + window.location.host, "i");
......@@ -145,10 +145,10 @@
* URL types:
* - gotwo.module /go/* links.
*
* @param string url
* @param {string} url
* The web url to check.
*
* @return boolean
* @return {boolean} isInternalSpecial
*/
Drupal.google_analytics.isInternalSpecial = function (url) {
var isInternalSpecial = new RegExp("(\/go\/.*)$", "i");
......@@ -162,10 +162,10 @@
* - http://mydomain.com/node/1 -> /node/1
* - http://example.com/foo/bar -> http://example.com/foo/bar
*
* @param string url
* @param {string} url
* The web url to check.
*
* @return string
* @return {string} getPageUrl
* Internal website URL.
*/
Drupal.google_analytics.getPageUrl = function (url) {
......@@ -176,10 +176,10 @@
/**
* Extract the download file extension from the URL.
*
* @param string url
* @param {string} url
* The web url to check.
*
* @return string
* @return {string} getDownloadExtension
* The file extension of the passed url. e.g. "zip", "txt"
*/
Drupal.google_analytics.getDownloadExtension = function (url) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment