@@ -693,7 +693,7 @@ Amplitude.prototype.setVersionName = function setVersionName(versionName) {
693693/**
694694 * Private logEvent method. Keeps apiProperties from being publicly exposed.
695695 */
696- Amplitude . prototype . _logEvent = function ( eventType , eventProperties , apiProperties , userProperties , callback ) {
696+ Amplitude . prototype . _logEvent = function _logEvent ( eventType , eventProperties , apiProperties , userProperties , callback ) {
697697 if ( type ( callback ) !== 'function' ) {
698698 callback = null ;
699699 }
@@ -772,7 +772,7 @@ Amplitude.prototype._logEvent = function(eventType, eventProperties, apiProperti
772772} ;
773773
774774// Remove old events from the beginning of the array if too many have accumulated. Default limit is 1000 events.
775- Amplitude . prototype . _limitEventsQueued = function ( queue ) {
775+ Amplitude . prototype . _limitEventsQueued = function _limitEventsQueued ( queue ) {
776776 if ( queue . length > this . options . savedMaxCount ) {
777777 queue . splice ( 0 , queue . length - this . options . savedMaxCount ) ;
778778 }
@@ -785,7 +785,7 @@ Amplitude.prototype._limitEventsQueued = function(queue) {
785785 * @param {function } opt_callback - (optional) a callback function to run after the event is logged
786786 * Note: the server response code and response body from the identify event upload are passed to the callback function.
787787 */
788- Amplitude . prototype . logEvent = function ( eventType , eventProperties , opt_callback ) {
788+ Amplitude . prototype . logEvent = function logEvent ( eventType , eventProperties , opt_callback ) {
789789 if ( ! this . _apiKeySet ( 'logEvent()' ) || ! utils . validateInput ( eventType , 'eventType' , 'string' ) ||
790790 utils . isEmptyString ( eventType ) ) {
791791 if ( type ( opt_callback ) === 'function' ) {
@@ -797,7 +797,7 @@ Amplitude.prototype.logEvent = function(eventType, eventProperties, opt_callback
797797} ;
798798
799799// Test that n is a number or a numeric value.
800- var _isNumber = function ( n ) {
800+ var _isNumber = function _isNumber ( n ) {
801801 return ! isNaN ( parseFloat ( n ) ) && isFinite ( n ) ;
802802} ;
803803
@@ -807,7 +807,7 @@ var _isNumber = function(n) {
807807 * @param {number } quantity - (optional) quantity of products in revenue event. If no quantity specified default to 1.
808808 * @param {string } product - (optional) product identifier
809809 */
810- Amplitude . prototype . logRevenue = function ( price , quantity , product ) {
810+ Amplitude . prototype . logRevenue = function logRevenue ( price , quantity , product ) {
811811 // Test that the parameters are of the right type.
812812 if ( ! this . _apiKeySet ( 'logRevenue()' ) || ! _isNumber ( price ) || quantity !== undefined && ! _isNumber ( quantity ) ) {
813813 // utils.log('Price and quantity arguments to logRevenue must be numbers');
@@ -845,7 +845,7 @@ Amplitude.prototype._removeEvents = function _removeEvents(eventQueue, maxId) {
845845 * @param {function } callback - (optional) callback to run after events are sent.
846846 * Note the server response code and response body are passed to the callback as input arguments.
847847 */
848- Amplitude . prototype . sendEvents = function ( callback ) {
848+ Amplitude . prototype . sendEvents = function sendEvents ( callback ) {
849849 if ( ! this . _apiKeySet ( 'sendEvents()' ) ) {
850850 if ( type ( callback ) === 'function' ) {
851851 callback ( 0 , 'No request sent' ) ;
@@ -917,7 +917,7 @@ Amplitude.prototype.sendEvents = function(callback) {
917917 }
918918} ;
919919
920- Amplitude . prototype . _mergeEventsAndIdentifys = function ( numEvents ) {
920+ Amplitude . prototype . _mergeEventsAndIdentifys = function _mergeEventsAndIdentifys ( numEvents ) {
921921 // coalesce events from both queues
922922 var eventsToSend = [ ] ;
923923 var eventIndex = 0 ;
0 commit comments