Skip to content

Commit

Permalink
missing callback file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmilowski committed Nov 1, 2014
1 parent e4e28a1 commit bb87995
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/other/callback.js
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit bb87995

Please sign in to comment.