Skip to content

Commit b18c1ca

Browse files
author
Nick Fisher
committed
[JSLint]
1 parent 60aec8f commit b18c1ca

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Tyrtle.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@
5555
};
5656
}())
5757
: function (func) {
58-
return function (func) {
59-
var args = Array.prototype.slice.call(arguments, 1);
60-
setTimeout(args.length === 0 ? func : function () {
61-
func.apply(func, args);
62-
}, 0);
63-
};
58+
var args = Array.prototype.slice.call(arguments, 1);
59+
setTimeout(args.length === 0 ? func : function () {
60+
func.apply(func, args);
61+
}, 0);
6462
}
6563
);
6664
noop = function () {};

test/tyrtle-tests.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/*globals jQuery, asyncTest, test, Tyrtle, equal, expect, start */
12
jQuery(function ($) {
23
asyncTest("Basic empty tests are reported as success", function () {
34
expect(4);
@@ -85,7 +86,7 @@ jQuery(function ($) {
8586
});
8687
this.test("f", function (assert) {
8788
assert(x).not(3)("x should not be three");
88-
})
89+
});
8990
});
9091
t.run();
9192
});

0 commit comments

Comments
 (0)