Created
January 22, 2011 14:40
-
-
Save phiggins42/791158 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define("can", ["has"], function(has){ | |
return { | |
has: function(test, callback){ | |
// summary: doublepluscool has.js intergration | |
// example: | |
// can.has("array-forEach", function(ihas){ | |
// if(ihas){ | |
// // There is a native Array.prototype.forEach | |
// } | |
// }); | |
var r = has(test); | |
return callback ? callback.call(this, r) : r; | |
} | |
}; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<3