ericdrowell/KineticJS — pull request #44 by matteo78 (2012-07-08 12:40:46+00:00)
Title: Direct-src support and autoloading in Kinetic.Image

It's often usefull to let the library load images idependently. Since you need one Kinetic.Image object per Image you want to draw, why don't load images into the constructor ?

You can now pass your Image objects, don't worry about loading, Kinetic will check if the Image has loaded, if not, he will wait for that and then draw the Image node.

For convenience, I've also added a support for direct-src input, so you can pass in image attr the path to the image you want to draw.