screen-orientation.ios.js
function findPrototypeForProperty(object,property){
    while(false==object.hasOwnProperty(property)){
        object = Object.getPrototypeOf(object);
    }
    return object;
}
function findPrototypeForProperty(object,property){
    while(false==object.hasOwnProperty(property)){
        object = Object.getPrototypeOf(object);
    }
    return object;
}
function findPrototypeForProperty ( object , property ) { while ( false == object . hasOwnProperty ( property ) ) { object = Object . getPrototypeOf ( object ) ; } return object ; }
find the exact object by which the property is owned in the prototype chain
@param object
@param property
@returns {*}
find the exact object by which the property is owned in the prototype chain