summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2014-01-08 06:31:44 (GMT)
committerwebchick2014-01-08 06:31:44 (GMT)
commit9e239760221f2c5215ef19825b6598a5e28fb225 (patch)
treec56d0948b73bd99d3b3b5cd6e4de41790ffdfab8
parentde6c77606d67e097021b6b98c1245fa90504ba01 (diff)
Issue #2167625 by nod_: JSHint errors.
-rw-r--r--core/misc/autocomplete.js1
-rw-r--r--core/modules/edit/js/views/FieldToolbarView.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/core/misc/autocomplete.js b/core/misc/autocomplete.js
index ad9bb1c..743e8d0 100644
--- a/core/misc/autocomplete.js
+++ b/core/misc/autocomplete.js
@@ -71,6 +71,7 @@ function searchHandler (event) {
* @param {Function} response
*/
function sourceData (request, response) {
+ /*jshint validthis:true */
var elementId = this.element.attr('id');
if (!(elementId in autocomplete.cache)) {
diff --git a/core/modules/edit/js/views/FieldToolbarView.js b/core/modules/edit/js/views/FieldToolbarView.js
index 8aee09f..67e567a 100644
--- a/core/modules/edit/js/views/FieldToolbarView.js
+++ b/core/modules/edit/js/views/FieldToolbarView.js
@@ -28,7 +28,7 @@ Drupal.edit.FieldToolbarView = Backbone.View.extend({
// Generate a DOM-compatible ID for the form container DOM element.
this._id = 'edit-toolbar-for-' + this.model.id.replace(/[\/\[\]]/g, '_');
- this.listenTo(this.model, 'change:state', this.stateChange)
+ this.listenTo(this.model, 'change:state', this.stateChange);
},
/**