summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/contextual/js/contextual.js
diff options
context:
space:
mode:
authorAlex Pott <alex.a.pott@googlemail.com>2015-01-10 01:36:01 +0000
committerAlex Pott <alex.a.pott@googlemail.com>2015-01-10 01:36:01 +0000
commita3efcb6fb3fbb553227ebcc27c7f6565ee70aeb3 (patch)
treebc656776e57beebae164999a6cad06d21bc6509e /core/modules/contextual/js/contextual.js
parent1e08b50f421bdbcb5c5f0bb83ebaff5d3843c3ac (diff)
downloaddrupal-a3efcb6fb3fbb553227ebcc27c7f6565ee70aeb3.tar.gz
drupal-a3efcb6fb3fbb553227ebcc27c7f6565ee70aeb3.zip
Issue #2389515 by nod_: Update ESLint rules
Diffstat (limited to 'core/modules/contextual/js/contextual.js')
-rw-r--r--core/modules/contextual/js/contextual.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/modules/contextual/js/contextual.js b/core/modules/contextual/js/contextual.js
index 505b2a80fc6e..e00b0118178f 100644
--- a/core/modules/contextual/js/contextual.js
+++ b/core/modules/contextual/js/contextual.js
@@ -66,14 +66,14 @@
var model = new contextual.StateModel({
title: $region.find('h2:first').text().trim()
});
- var viewOptions = $.extend({ el: $contextual, model: model }, options);
+ var viewOptions = $.extend({el: $contextual, model: model}, options);
contextual.views.push({
visual: new contextual.VisualView(viewOptions),
aural: new contextual.AuralView(viewOptions),
keyboard: new contextual.KeyboardView(viewOptions)
});
contextual.regionViews.push(new contextual.RegionView(
- $.extend({ el: $region, model: model }, options))
+ $.extend({el: $region, model: model}, options))
);
// Add the model to the collection. This must happen after the views have been
@@ -128,7 +128,7 @@
$trigger.addClass('visually-hidden');
// Adjust nested contextual link's position.
- $nestedContextual.css({ top: $nestedContextual.position().top + height });
+ $nestedContextual.css({top: $nestedContextual.position().top + height});
}
}
@@ -178,7 +178,7 @@
$.ajax({
url: Drupal.url('contextual/render'),
type: 'POST',
- data: { 'ids[]': uncachedIDs },
+ data: {'ids[]': uncachedIDs},
dataType: 'json',
success: function (results) {
_.each(results, function (html, contextualID) {
@@ -192,7 +192,7 @@
// Usually there will only be one placeholder, but it's possible for
// multiple identical placeholders exist on the page (probably
// because the same content appears more than once).
- var $placeholders = $context.find('[data-contextual-id="' + contextualID + '"]');
+ $placeholders = $context.find('[data-contextual-id="' + contextualID + '"]');
// Initialize the contextual links.
for (var i = 0; i < $placeholders.length; i++) {
@@ -217,7 +217,7 @@
};
// A Backbone.Collection of Drupal.contextual.StateModel instances.
- Drupal.contextual.collection = new Backbone.Collection([], { model: Drupal.contextual.StateModel });
+ Drupal.contextual.collection = new Backbone.Collection([], {model: Drupal.contextual.StateModel});
/**
* A trigger is an interactive element often bound to a click handler.