projects
/
platform
/
framework
/
web
/
web-ui-fw.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
modify wrong changelog date
[platform/framework/web/web-ui-fw.git]
/
libs
/
js
/
jquery-mobile-1.2.0
/
node_modules
/
grunt
/
node_modules
/
nodeunit
/
node_modules
/
tap
/
node_modules
/
runforcover
/
node_modules
/
bunker
/
node_modules
/
burrito
/
node_modules
/
traverse
/
main.js
1
// scrub out circular references
2
var traverse = require('./index.js');
3
4
var obj = { a : 1, b : 2, c : [ 3, 4 ] };
5
obj.c.push(obj);
6
7
var scrubbed = traverse(obj).map(function (x) {
8
if (this.circular) this.remove()
9
});
10
console.dir(scrubbed);