Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: html/static/js/ieEventListenerPolyfill.js

Issue 4859491858251776: Fix the approach used in ieFirstRun.js (Closed)
Patch Set: Formatting nit addressed Created July 16, 2014, 11:19 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « html/static/js/firstRun.js ('k') | html/static/js/ieFirstRun.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 if (typeof window.addEventListener != "function")
2 {
3 window.addEventListener = function(type, handler, capture)
4 {
5 this.attachEvent("on" + type, handler)
6 };
7 }
8
9 if (typeof window.removeEventListener != "function")
10 {
11 window.removeEventListener = function(type, handler)
12 {
13 this.detachEvent("on" + type, handler)
14 };
15 }
OLDNEW
« no previous file with comments | « html/static/js/firstRun.js ('k') | html/static/js/ieFirstRun.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld