Damn semicolons
This commit is contained in:
1 parent
d6cfcae45b
commit
5145618c39
27 files changed
+261
-263
No files matched your search
@@ -10,7 +10,7 @@ var Question = new Class( {
|
||||
self.createQuestion();
|
||||
self.answers.each(function(answer) {
|
||||
self.createAnswer(answer);
|
||||
})
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
@@ -24,7 +24,7 @@ var Question = new Class( {
|
||||
new Element('div.hint', {
|
||||
'html': this.hint
|
||||
})
|
||||
).fade('hide').inject(document.body).fade('in')
|
||||
).fade('hide').inject(document.body).fade('in');
|
||||
|
||||
},
|
||||
|
||||
@@ -32,7 +32,7 @@ var Question = new Class( {
|
||||
var self = this;
|
||||
|
||||
var answer = new Element('a', Object.merge(options, {
|
||||
'class' : 'answer button '+(options['class'] || '')+(options['cancel'] ? ' cancel' : '')
|
||||
'class' : 'answer button '+(options['class'] || '')+(options.cancel ? ' cancel' : '')
|
||||
})).inject(this.container);
|
||||
|
||||
if (options.cancel) {
|
||||
@@ -55,7 +55,7 @@ var Question = new Class( {
|
||||
close : function() {
|
||||
var self = this;
|
||||
self.container.fade('out');
|
||||
(function(){self.container.destroy()}).delay(1000);
|
||||
(function(){self.container.destroy();}).delay(1000);
|
||||
},
|
||||
|
||||
toElement : function() {
|
||||
|
||||
@@ -50,7 +50,7 @@ var ScrollSpy = new Class({
|
||||
min = typeOf(self.options.min) == 'function' ? self.options.min() : self.options.min,
|
||||
max = typeOf(self.options.max) == 'function' ? self.options.max() : self.options.max;
|
||||
|
||||
if(xy >= min && (max == 0 || xy <= max)) {
|
||||
if(xy >= min && (max === 0 || xy <= max)) {
|
||||
/* trigger enter event if necessary */
|
||||
if(!self.inside) {
|
||||
/* record as inside */
|
||||
@@ -90,4 +90,4 @@ var ScrollSpy = new Class({
|
||||
addListener: function() {
|
||||
this.start();
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user