Skip to content

Instantly share code, notes, and snippets.

@tauren
Created August 14, 2011 20:53
Show Gist options
  • Save tauren/1145297 to your computer and use it in GitHub Desktop.
Save tauren/1145297 to your computer and use it in GitHub Desktop.
Fails jshint
creampie:common-client tauren$ cake smoosh
*********************************************************************
###### ## ## ####### ####### ###### ## ##
## ## ### ### ## ## ## ## ## ## ## ##
## #### #### ## ## ## ## ## ## ##
###### ## ### ## ## ## ## ## ###### #########
## ## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ## ## ## ##
###### ## ## ####### ####### ###### ## ##
*********************************************************************
- Boo! *./target/js/widgets.js* FAILED JSHint with 3 errors:
(error) line 8: Missing semicolon.
(error) line 8: Expected an identifier and instead saw '='.
undefined line 8: Stopping, unable to continue. (61% scanned).
class Widgets
widgets: {}
addWidget = (name,onStart) ->
@widgets[name] = onStart
(function() {
var Widgets;
Widgets = (function() {
var addWidget;
function Widgets() {}
Widgets.prototype.widgets = {};
addWidget = function(name, onStart) {
return this.widgets[name] = onStart;
};
return Widgets;
})();
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment