1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

added hooks and transculsions

This commit is contained in:
Fred Chasen 2013-02-07 13:17:01 -08:00
parent 4c5235162e
commit 7feb491abd
9 changed files with 92 additions and 26 deletions

11
fpjs/render/hooks.js Normal file
View file

@ -0,0 +1,11 @@
FP.Hooks = (function(){
"use strict";
return {
register: function(name) {
if(this[name] === undefined) { this[name] = {}; }
if(typeof this[name] !== 'object') { throw "Already registered: "+name; }
return this[name];
}
};
})();