@@ -1245,222 +1245,6 @@ <h5>Example</h5>
12451245
12461246
12471247
1248-
1249- < h4 class ="name " id ="saveEvents "> < span class ="type-signature "> </ span > saveEvents< span class ="signature "> ()</ span > < span class ="type-signature "> </ span > </ h4 >
1250-
1251-
1252-
1253-
1254-
1255- < div class ="description ">
1256- Saves unsent events and identifies to localStorage. JSON stringifies event queues before saving.
1257- Note: this is called automatically every time events are logged, unless you explicitly set option saveEvents to false.
1258- </ div >
1259-
1260-
1261-
1262-
1263-
1264-
1265-
1266-
1267-
1268-
1269-
1270-
1271-
1272- < dl class ="details ">
1273-
1274-
1275-
1276-
1277-
1278-
1279-
1280-
1281-
1282-
1283-
1284-
1285-
1286-
1287-
1288-
1289-
1290-
1291-
1292-
1293-
1294-
1295-
1296-
1297-
1298-
1299- < dt class ="tag-source "> Source:</ dt >
1300- < dd class ="tag-source "> < ul class ="dummy "> < li >
1301- < a href ="amplitude.js.html "> amplitude.js</ a > , < a href ="amplitude.js.html#line504 "> line 504</ a >
1302- </ li > </ ul > </ dd >
1303-
1304-
1305-
1306-
1307-
1308-
1309-
1310- </ dl >
1311-
1312-
1313-
1314-
1315-
1316-
1317-
1318-
1319-
1320-
1321-
1322-
1323-
1324-
1325-
1326-
1327-
1328-
1329-
1330-
1331-
1332- < h4 class ="name " id ="sendEvents "> < span class ="type-signature "> </ span > sendEvents< span class ="signature "> (callback)</ span > < span class ="type-signature "> </ span > </ h4 >
1333-
1334-
1335-
1336-
1337-
1338- < div class ="description ">
1339- Send unsent events. Note: this is called automatically after events are logged if option batchEvents is false.
1340- If batchEvents is true, then events are only sent when batch criterias are met.
1341- </ div >
1342-
1343-
1344-
1345-
1346-
1347-
1348-
1349-
1350-
1351- < h5 > Parameters:</ h5 >
1352-
1353-
1354- < table class ="params ">
1355- < thead >
1356- < tr >
1357-
1358- < th > Name</ th >
1359-
1360-
1361- < th > Type</ th >
1362-
1363-
1364-
1365-
1366-
1367- < th class ="last "> Description</ th >
1368- </ tr >
1369- </ thead >
1370-
1371- < tbody >
1372-
1373-
1374- < tr >
1375-
1376- < td class ="name "> < code > callback</ code > </ td >
1377-
1378-
1379- < td class ="type ">
1380-
1381-
1382- < span class ="param-type "> function</ span >
1383-
1384-
1385-
1386- </ td >
1387-
1388-
1389-
1390-
1391-
1392- < td class ="description last "> (optional) callback to run after events are sent.
1393- Note the server response code and response body are passed to the callback as input arguments.</ td >
1394- </ tr >
1395-
1396-
1397- </ tbody >
1398- </ table >
1399-
1400-
1401-
1402-
1403-
1404-
1405- < dl class ="details ">
1406-
1407-
1408-
1409-
1410-
1411-
1412-
1413-
1414-
1415-
1416-
1417-
1418-
1419-
1420-
1421-
1422-
1423-
1424-
1425-
1426-
1427-
1428-
1429-
1430-
1431-
1432- < dt class ="tag-source "> Source:</ dt >
1433- < dd class ="tag-source "> < ul class ="dummy "> < li >
1434- < a href ="amplitude.js.html "> amplitude.js</ a > , < a href ="amplitude.js.html#line871 "> line 871</ a >
1435- </ li > </ ul > </ dd >
1436-
1437-
1438-
1439-
1440-
1441-
1442-
1443- </ dl >
1444-
1445-
1446-
1447-
1448-
1449-
1450-
1451-
1452-
1453-
1454-
1455-
1456-
1457-
1458-
1459-
1460-
1461-
1462-
1463-
14641248
14651249 < h4 class ="name " id ="setDeviceId "> < span class ="type-signature "> </ span > setDeviceId< span class ="signature "> (deviceId)</ span > < span class ="type-signature "> </ span > </ h4 >
14661250
@@ -2400,7 +2184,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Amplitude
24002184< br class ="clear ">
24012185
24022186< footer >
2403- Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.4.0</ a > on Mon Apr 04 2016 16:26:40 GMT-0700 (PDT)
2187+ Documentation generated by < a href ="https://github.com/jsdoc3/jsdoc "> JSDoc 3.4.0</ a > on Mon Apr 04 2016 16:50:13 GMT-0700 (PDT)
24042188</ footer >
24052189
24062190< script > prettyPrint ( ) ; </ script >
0 commit comments