Skip to content

Commit

Permalink
tighten up linting for Issue #218
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrins committed May 30, 2014
1 parent 117d17f commit 45934a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ module.exports = function(grunt) {

jshint: {
options: {
browser: true,
sub: true,

strict: true,
newcap: false,
globals: {
jQuery: true
}
Expand Down
8 changes: 4 additions & 4 deletions spectrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// License: MIT

(function (window, $, undefined) {
"use strict";

var defaultOpts = {

// Callbacks
Expand Down Expand Up @@ -404,11 +406,11 @@

function palletElementClick(e) {
if (e.data && e.data.ignore) {
set($(this).data("color"));
set($(e.target).data("color"));
move();
}
else {
set($(this).data("color"));
set($(e.target).data("color"));
move();
updateOriginalInput(true);
hide();
Expand Down Expand Up @@ -1047,8 +1049,6 @@
};
}

function log(){/* jshint -W021 */if(window.console){if(Function.prototype.bind)log=Function.prototype.bind.call(console.log,console);else log=function(){Function.prototype.apply.call(console.log,console,arguments);};log.apply(this,arguments);}}

/**
* Define a jQuery plugin
*/
Expand Down

1 comment on commit 45934a3

@Leyart
Copy link

@Leyart Leyart commented on 45934a3 Jun 10, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in palletElementClick are breaking colorSelection. Fix it please.

Please sign in to comment.