Skip to content

Commit e8cdc83

Browse files
committed
Added removeEventListener
1 parent 27209e8 commit e8cdc83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎function-patterns/init-time-branching.html‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
utils.addListener=function(el,type,fn){
3737
el.addEventListener(type,fn,false);
3838
};
39+
utils.removeListener=function(el,type,fn){
40+
el.removeEventListener(type,fn,false);
41+
};
3942
}elseif(typeofdocument.attachEvent!=='undefined'){// IE
4043
utils.addListener=function(el,type,fn){
4144
el.attachEvent('on'+type,fn);
@@ -57,4 +60,4 @@
5760
// http://shop.oreilly.com/product/9780596806767.do?sortby=publicationDate
5861
</script>
5962
</body>
60-
</html>
63+
</html>

0 commit comments

Comments
(0)