Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ziggythehamster/PIE into …
Browse files Browse the repository at this point in the history
…ziggythehamster
  • Loading branch information
Jason Johnston committed Jan 23, 2011
2 parents e8ccbd6 + 4f092d9 commit 127348f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sources/htc_init.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ var p = window['PIE'],
el = element;

function init() {
if( doc.media !== 'print' ) { // IE strangely attaches a second copy of the behavior to elements when printing
if( p && doc.media !== 'print' ) { // IE strangely attaches a second copy of the behavior to elements when printing
p['attach']( el );
}
}

function cleanup() {
p['detach']( el );
p = el = 0;
if (p) {
p['detach']( el );
p = el = 0;
}
}

if( el.readyState === 'complete' ) {
Expand Down

0 comments on commit 127348f

Please sign in to comment.