Skip to content
Browse files

Adjust version detection for IE9: CSS3 is only supported natively in …

…documentMode=9 (regardless of browser mode) so base the decision to attach on that rather than the detected IE version.
  • Loading branch information...
1 parent 5cd48c9 commit 75a20d55804b9713fd067a156725901c75509fb7 Jason Johnston committed Mar 30, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −2 sources/Element.js
  2. +1 −1 sources/Heartbeat.js
  3. +1 −1 sources/PIE_API.js
  4. +1 −1 sources/PIE_open.js
View
4 sources/Element.js
@@ -97,7 +97,7 @@ PIE.Element = (function() {
initAncestorPropChangeListeners();
// Add to list of polled elements in IE8
- if( PIE.ie8DocMode === 8 ) {
+ if( PIE.ieDocMode === 8 ) {
PIE.Heartbeat.observe( update );
}
@@ -310,7 +310,7 @@ PIE.Element = (function() {
}
// Remove from list of polled elements in IE8
- if( PIE.ie8DocMode === 8 ) {
+ if( PIE.ieDocMode === 8 ) {
PIE.Heartbeat.unobserve( update );
}
// Stop onresize listening
View
2 sources/Heartbeat.js
@@ -4,7 +4,7 @@
* times every second to make sure the elements have the correct position and size.
*/
-if( PIE.ie8DocMode === 8 ) {
+if( PIE.ieDocMode === 8 ) {
PIE.Heartbeat = new PIE.Observable();
setInterval( function() { PIE.Heartbeat.fire() }, 250 );
}
View
2 sources/PIE_API.js
@@ -8,7 +8,7 @@
* @param {Element} el
*/
PIE[ 'attach' ] = function( el ) {
- if (PIE.ieVersion < 9) {
+ if (PIE.ieDocMode < 9) {
PIE.Element.getInstance( el ).init();
}
};
View
2 sources/PIE_open.js
@@ -40,4 +40,4 @@ if( !PIE ) {
}
// Detect IE8
- PIE.ie8DocMode = PIE.ieVersion === 8 && doc.documentMode;
+ PIE.ieDocMode = doc.documentMode || PIE.ieVersion;

0 comments on commit 75a20d5

Please sign in to comment.
Something went wrong with that request. Please try again.