more notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-02-23 04:00:56 +03:00
parent 60850313ed
commit 9402c16739

View File

@ -297,8 +297,7 @@ var BaseBrowserPrototype = {
// item constructor... // item constructor...
// //
// make(value) // make(value[, options])
// make(value, options)
// make(value, func[, options]) // make(value, func[, options])
// -> make // -> make
// //
@ -320,12 +319,11 @@ var BaseBrowserPrototype = {
: opts : opts
// item id... // item id...
// XXX revise id generation... // XXX do a better id...
// XXX these should include the path... (???) // XXX should these include the path???
var key = opts.id var key = opts.id
// value is a browser -> generate an unique id... // value is a browser -> generate an unique id...
// XXX identify via API... // XXX identify via structure...
// XXX do a better id
|| (value instanceof Browser || (value instanceof Browser
&& Date.now()) && Date.now())
|| JSON.stringify(value) || JSON.stringify(value)