From bb879955788eb48ad7fde427398289d2ff30008a Mon Sep 17 00:00:00 2001 From: "XML Geek; runs with scissors" Date: Sat, 1 Nov 2014 09:21:37 -0700 Subject: [PATCH] missing callback file --- tests/other/callback.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/other/callback.js diff --git a/tests/other/callback.js b/tests/other/callback.js new file mode 100644 index 0000000..7e15887 --- /dev/null +++ b/tests/other/callback.js @@ -0,0 +1,20 @@ +CallbackProcessor.prototype = new RDFaProcessor(); +CallbackProcessor.prototype.constructor=RDFaProcessor; +function CallbackProcessor() { + RDFaProcessor.call(this); +} + +CallbackProcessor.prototype.newSubjectOrigin = function(origin,subject) { + console.log("New origin for "+subject); +} + +CallbackProcessor.prototype.addTriple = function(origin,subject,predicate,object) { + console.log("New triple: "+subject+", predicate "+predicate+", object "+object.value+", "+object.language+", "+object.type); +} + +window.addEventListener("load",function() { + + var processor = new CallbackProcessor(); + processor.process(document); + +},false); \ No newline at end of file