js/OverlayScrollbars.js
function getObjectPropVal(obj, path) {
                    var splits = path.split(_strDot);
                    var i = 0;
                    var val;
                    for(; i < splits.length; i++) {
                        if(!obj.hasOwnProperty(splits[i]))
                            return;
                        val = obj[splits[i]];
                        if(i < splits.length && type(val) == TYPES.o)
                            obj = val;
                    }
                    return val;
                }
function getObjectPropVal(obj, path) {
                    var splits = path.split(_strDot);
                    var i = 0;
                    var val;
                    for(; i < splits.length; i++) {
                        if(!obj.hasOwnProperty(splits[i]))
                            return;
                        val = obj[splits[i]];
                        if(i < splits.length && type(val) == TYPES.o)
                            obj = val;
                    }
                    return val;
                }
function getObjectPropVal ( obj , path ) { var splits = path . split ( _strDot ) ; var i = 0 ; var val ; for ( ; i < splits . length ; i ++ ) { if ( ! obj . hasOwnProperty ( splits [ i ] ) ) return ; val = obj [ splits [ i ] ] ; if ( i < splits . length && type ( val ) == TYPES . o ) obj = val ; } return val ; }
Gets the value of the given property from the given object.
@param obj The object from which the property value shall be got.
@param path The property of which the value shall be got.
@returns {*} Returns the value of the searched property or undefined of the property wasn't found.
Gets the value of the given property from the given object .