SlexAxton/yepnope.js — pull request #83 by gburgett (2012-01-07 06:30:24+00:00)
Title: .ready for yepnope

Hello,

I have been working with yepnope at work and have found that what I really need is .ready functionality. This is because I primarily deal with MVC3 and Razor, using nested layouts. In my top _Layout I load jQuery and some other libraries, but in my actual page I want to run, for example, a script when jQuery and jsTree are both loaded and ready so I can unhide my tree and collapse it.

So, I wrote that functionality into yepnope. Please take a look at it and see if you like it, I am not terribly experienced with javascript so I imagine much of it could be optimized. I also do not know how to use QUnit so I was not able to write any tests for this.

The commit message describes the functionality in more detail. I tested it with another html file I included which simply writes to the console output.

Thanks!
-Gordon