Created
August 14, 2011 20:53
-
-
Save tauren/1145297 to your computer and use it in GitHub Desktop.
Fails jshint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Widgets | |
widgets: {} | |
addWidget = (name,onStart) -> | |
@widgets[name] = onStart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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