add comment in arraybuffer serialization helpers

This commit is contained in:
Julian Descottes 2016-10-16 18:33:10 +02:00
parent 73986c4e61
commit 8f493a8147
2 changed files with 18 additions and 0 deletions

View File

@ -1,6 +1,16 @@
(function () {
var ns = $.namespace('pskl.utils.serialization.arraybuffer');
/**
* The array buffer serialization-deserialization should only be used when when backing
* up the animation in memory. If you actually need to dump the animation to a string
* use the regular serialization helpers.
*
* This is due to the lacking support on TypedArray::toString on some browsers.
* Will revisit the option of using this across the whole project when the APIs are less
* green.
*
*/
ns.ArrayBufferDeserializer = {
deserialize : function (data, callback) {
var i;

View File

@ -2,6 +2,14 @@
var ns = $.namespace('pskl.utils.serialization.arraybuffer');
/**
* The array buffer serialization-deserialization should only be used when when backing
* up the animation in memory. If you actually need to dump the animation to a string
* use the regular serialization helpers.
*
* This is due to the lacking support on TypedArray::toString on some browsers.
* Will revisit the option of using this across the whole project when the APIs are less
* green.
*
*********
* META *
*********