Commit bcaae005 authored by targoo's avatar targoo

Use strict mode in JavaScript

parent 6646546d
......@@ -4,6 +4,8 @@
*/
(function ($) {
"use strict";
Drupal.behaviors.color_field = {
attach: function (context) {
$.each(Drupal.settings.color_field, function (selector) {
......
......@@ -3,6 +3,8 @@
* Javascript for Color Field.
*/
(function ($) {
"use strict";
Drupal.behaviors.color_field_farbtastic = {
attach: function (context) {
$.each(Drupal.settings.color_field_farbtastic, function (selector) {
......
......@@ -3,6 +3,8 @@
* Javascript for Color Field.
*/
(function ($) {
"use strict";
Drupal.behaviors.color_field_farbtastic = {
attach: function (context) {
$.each(Drupal.settings.color_field_farbtastic, function (selector) {
......
......@@ -3,6 +3,8 @@
* Javascript for Color Field.
*/
(function ($) {
"use strict";
Drupal.behaviors.color_field_farbtastic = {
attach: function (context) {
$.each(Drupal.settings.color_field_farbtastic, function (selector) {
......
......@@ -3,6 +3,8 @@
* Javascript for Color Field.
*/
(function ($) {
"use strict";
Drupal.behaviors.color_field_jquery_simple_color = {
attach: function (context) {
$.each(Drupal.settings.color_field_jquery_simple_color, function (selector) {
......
......@@ -3,6 +3,8 @@
* Javascript for Color Field.
*/
(function ($) {
"use strict";
Drupal.behaviors.color_field_spectrum = {
attach: function (context) {
$.each(Drupal.settings.color_field_spectrum, function (selector) {
......
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