Skip to content

Commit

Permalink
making grunt qunit work well. bug in fnBind deps
Browse files Browse the repository at this point in the history
  • Loading branch information
SlexAxton committed Dec 5, 2012
1 parent 4e44e3b commit 76f1986
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion config-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"addTest",
"html5printshiv",
"load",
"testProp"
"testProp",
"fnBind"
],
"feature-detects": [
"test/a/download",
Expand Down
7 changes: 5 additions & 2 deletions src/createElement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
define(['fnBind'], function() {
var createElement = document.createElement.bind(document);
define(function() {
var createElement = function() {
return document.createElement.apply(document, arguments);
};

return createElement;
});
2 changes: 1 addition & 1 deletion src/fnBind.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define(function() {
define(['slice'], function( slice ) {
// Adapted from ES5-shim https://github.com/kriskowal/es5-shim/blob/master/es5-shim.js
// es5.github.com/#x15.3.4.5

Expand Down

0 comments on commit 76f1986

Please sign in to comment.