nathansearles/slidesjs

Syntax error

Daijobou opened this issue · 1 comments

http://closure-compiler.appspot.com/home can't compile source of Slides. :(

Number of errors: 4

JSC_PARSE_ERROR: Parse error. missing name after . operator at line 210 character 13
return _this.goto(($(e.currentTarget).attr("data-slidesjs-item") * 1) + 1);

JSC_PARSE_ERROR: Parse error. missing name after . operator at line 277 character 17
Plugin.prototype.goto = function(number) {

JSC_PARSE_ERROR: Parse error. missing ) in parenthetical at line 310 character 1
};

JSC_PARSE_ERROR: Parse error. syntax error at line 624 character 0
}).call(this);

This command-line parameter helps
--language_in=ECMASCRIPT5

Source: http://code.google.com/p/closure-compiler/issues/detail?id=525