@@ -431,7 +431,7 @@ var _parseConfig = function _parseConfig(options, config) {
431431
432432 // validates config value is defined, is the correct type, and some additional value sanity checks
433433 var parseValidateAndLoad = function parseValidateAndLoad ( key ) {
434- if ( ! options . hasOwnProperty ( key ) ) {
434+ if ( ! Object . prototype . hasOwnProperty . call ( options , key ) ) {
435435 return ; // skip bogus config values
436436 }
437437
@@ -453,7 +453,7 @@ var _parseConfig = function _parseConfig(options, config) {
453453 } ;
454454
455455 for ( var key in config ) {
456- if ( config . hasOwnProperty ( key ) ) {
456+ if ( Object . prototype . hasOwnProperty . call ( config , key ) ) {
457457 parseValidateAndLoad ( key ) ;
458458 }
459459 }
@@ -769,7 +769,7 @@ var _sendParamsReferrerUserProperties = function _sendParamsReferrerUserProperti
769769 // setOnce the initial user properties
770770 var identify = new Identify ( ) ;
771771 for ( var key in userProperties ) {
772- if ( userProperties . hasOwnProperty ( key ) ) {
772+ if ( Object . prototype . hasOwnProperty . call ( userProperties , key ) ) {
773773 identify . setOnce ( 'initial_' + key , userProperties [ key ] ) ;
774774 identify . set ( key , userProperties [ key ] ) ;
775775 }
@@ -1076,7 +1076,7 @@ AmplitudeClient.prototype.setUserProperties = function setUserProperties(userPro
10761076 // convert userProperties into an identify call
10771077 var identify = new Identify ( ) ;
10781078 for ( var property in sanitized ) {
1079- if ( sanitized . hasOwnProperty ( property ) ) {
1079+ if ( Object . prototype . hasOwnProperty . call ( sanitized , property ) ) {
10801080 identify . set ( property , sanitized [ property ] ) ;
10811081 }
10821082 }
@@ -1140,7 +1140,7 @@ AmplitudeClient.prototype.identify = function (identify_obj, opt_callback) {
11401140 }
11411141
11421142 // if identify input is a proxied object created by the async loading snippet, convert it into an identify object
1143- if ( type ( identify_obj ) === 'object' && identify_obj . hasOwnProperty ( '_q' ) ) {
1143+ if ( Object . prototype . hasOwnProperty . call ( identify_obj , '_q' ) ) {
11441144 identify_obj = _convertProxyObjectToRealObject ( new Identify ( ) , identify_obj ) ;
11451145 }
11461146
@@ -1196,7 +1196,7 @@ AmplitudeClient.prototype.groupIdentify = function (group_type, group_name, iden
11961196 }
11971197
11981198 // if identify input is a proxied object created by the async loading snippet, convert it into an identify object
1199- if ( type ( identify_obj ) === 'object' && identify_obj . hasOwnProperty ( '_q' ) ) {
1199+ if ( Object . prototype . hasOwnProperty . call ( identify_obj , '_q' ) ) {
12001200 identify_obj = _convertProxyObjectToRealObject ( new Identify ( ) , identify_obj ) ;
12011201 }
12021202
@@ -1524,7 +1524,7 @@ AmplitudeClient.prototype.logRevenueV2 = function logRevenueV2(revenue_obj) {
15241524 }
15251525
15261526 // if revenue input is a proxied object created by the async loading snippet, convert it into an revenue object
1527- if ( type ( revenue_obj ) === 'object' && revenue_obj . hasOwnProperty ( '_q' ) ) {
1527+ if ( Object . prototype . hasOwnProperty . call ( revenue_obj , '_q' ) ) {
15281528 revenue_obj = _convertProxyObjectToRealObject ( new Revenue ( ) , revenue_obj ) ;
15291529 }
15301530
0 commit comments