diff --git a/source/qml/lib/annotate.js b/source/qml/lib/annotate.js --- a/source/qml/lib/annotate.js +++ b/source/qml/lib/annotate.js @@ -70,6 +70,15 @@ return result; } +An.prototype.inspect = function() { + for (var member in this.nodes[0]) { + if (typeof this[member] !== "function") { + console.log(member + ": " + this[member]); + } + } + return this; +} + // Search only direct children An.prototype.children = function(selector) { var result = new An();