Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
fix ie detection
Browse files Browse the repository at this point in the history
  • Loading branch information
basti1253 committed Oct 4, 2013
2 parents 2dcb14e + cd14e2f commit afb8c2d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions dist/coverflow.js
Expand Up @@ -169,7 +169,7 @@

var o = this.options;

this.origStyle = this.element.attr("style") || "";
this.elementOrigStyle = this.element.attr("style") || "";

this.items = this.element.find( o.items )
// set tabindex so widget items get focusable
Expand Down Expand Up @@ -508,8 +508,10 @@
this.items
.removeClass( "ui-coverflow-item ui-state-active" )
.each(function(){
var $this = $(this);
$this.attr("style", $this.data("coverflowbeforestyle"));
var $this = $( this );
$this
.attr( "style", $this.data( "coverflowbeforestyle" ) )
.data( "coverflowbeforestyle", null );
});

this._super();
Expand Down
2 changes: 1 addition & 1 deletion dist/coverflow.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions src/js/coverflow.js
Expand Up @@ -190,7 +190,7 @@

var o = this.options;

this.origStyle = this.element.attr("style") || "";
this.elementOrigStyle = this.element.attr("style") || "";

this.items = this.element.find( o.items )
// set tabindex so widget items get focusable
Expand Down Expand Up @@ -529,8 +529,10 @@
this.items
.removeClass( "ui-coverflow-item ui-state-active" )
.each(function(){
var $this = $(this);
$this.attr("style", $this.data("coverflowbeforestyle"));
var $this = $( this );
$this
.attr( "style", $this.data( "coverflowbeforestyle" ) )
.data( "coverflowbeforestyle", null );
});

this._super();
Expand Down

0 comments on commit afb8c2d

Please sign in to comment.