// Meta functions for events management.
var addListener; /* (ob, eventName, listenerFunction, group) add event listener eventName without "on" prefix.
- * optionally, listeners can be grouped to make removing convenient.
+ * optionally, listeners can be grouped to make removing convenient.
*/
var removeListener; // (ob, eventName, listenerFunction, group) remove event listener.
var removeGroupListeners; // (group) remove all listeners in group.
var copyPrototype; // (descendant, parent) lightwheight javascript inheritance
if (!history.pushState) {
- history.pushState = function(){};
+ history.pushState = function(){};
}
(function(){
buildMetaFunctions();
addListener(window, 'load', function(evt) {
- // html5 facade
- if (!document.body.classList) {
- var nop = function(){};
- var fakeDOMTokenList = {'length':0, 'item':nop, 'contains':nop, 'add':nop, 'remove':nop, 'toggle':nop};
- Element.prototype.classList = fakeDOMTokenList;
- }
+ // html5 facade
+ if (!document.body.classList) {
+ var nop = function(){};
+ var fakeDOMTokenList = {'length':0, 'item':nop, 'contains':nop, 'add':nop, 'remove':nop, 'toggle':nop};
+ Element.prototype.classList = fakeDOMTokenList;
+ }
});