vendor/kinetic-v5.1.0.js
function(constructor, methods) {
            var key;

            for (key in methods) {
                constructor.prototype[key] = methods[key];
            }
        }
function(constructor, methods) {
            var key;

            for (key in methods) {
                constructor.prototype[key] = methods[key];
            }
        }
function ( constructor , methods ) { var key ; for ( key in methods ) { constructor . prototype [ key ] = methods [ key ] ; } }
adds methods to a constructor prototype
@method
@memberof Kinetic.Util.prototype
@param {Function} constructor
@param {Object} methods
adds methods to a constructor prototype