mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Dev environment : closure compiler + jshint update
Fixed error raised by closure compiler Added es3 option to jshint (detect trailing commas) Added curly option to jshint (missing curly braces for if/for blocks) Removed trailing whitespaces (not enforced through jshint though)
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
this.previewContainerEl = document.querySelectorAll(".export-gif-preview div")[0];
|
||||
this.radioGroupEl = document.querySelectorAll(".gif-export-radio-group")[0];
|
||||
|
||||
this.uploadFormJQ = $("[name=gif-export-upload-form]");
|
||||
this.uploadFormJQ = $("[name=gif-export-upload-form]");
|
||||
this.uploadFormJQ.submit(this.upload.bind(this));
|
||||
|
||||
this.initRadioElements_();
|
||||
@ -53,7 +53,7 @@
|
||||
[1],
|
||||
[5],
|
||||
[10,true], //default
|
||||
[20],
|
||||
[20]
|
||||
];
|
||||
|
||||
for (var i = 0 ; i < dpis.length ; i++) {
|
||||
@ -68,7 +68,7 @@
|
||||
var value = dpi[0];
|
||||
var radioHTML = pskl.utils.Template.replace(this.radioTemplate_, {value : value, label : label});
|
||||
var radio = pskl.utils.Template.createFromHTML(radioHTML);
|
||||
|
||||
|
||||
if (dpi[1]) {
|
||||
radio.getElementsByTagName("input")[0].setAttribute("checked", "checked");
|
||||
}
|
||||
|
Reference in New Issue
Block a user