Skip to content

Instantly share code, notes, and snippets.

@phiggins42
Created January 22, 2011 14:40
Show Gist options
  • Save phiggins42/791158 to your computer and use it in GitHub Desktop.
Save phiggins42/791158 to your computer and use it in GitHub Desktop.
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;
}
};
})
@ttilley
Copy link

ttilley commented Jan 22, 2011

<3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment