mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
add comment in arraybuffer serialization helpers
This commit is contained in:
parent
73986c4e61
commit
8f493a8147
@ -1,6 +1,16 @@
|
|||||||
(function () {
|
(function () {
|
||||||
var ns = $.namespace('pskl.utils.serialization.arraybuffer');
|
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 = {
|
ns.ArrayBufferDeserializer = {
|
||||||
deserialize : function (data, callback) {
|
deserialize : function (data, callback) {
|
||||||
var i;
|
var i;
|
||||||
|
@ -2,6 +2,14 @@
|
|||||||
var ns = $.namespace('pskl.utils.serialization.arraybuffer');
|
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 *
|
* META *
|
||||||
*********
|
*********
|
||||||
|
Loading…
Reference in New Issue
Block a user