1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00
epub.js/epubjs/render/hooks.js
2013-06-04 18:23:11 -07:00

11 lines
No EOL
249 B
JavaScript

EPUBJS.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];
}
};
})();