Skip to content

Commit

Permalink
Issue #130 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jtara committed Nov 11, 2013
1 parent 5c9a3c9 commit f964a2f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/jquery.mobile.iscrollview.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ regexp:false, todo:true */

/*
jquery.mobile.iscrollview.js
Version: 1.3.6
Version: 1.3.7
jQuery Mobile iScroll4 view widget
Copyright (c), 2012, 2013 Watusiware Corporation
Distributed under the MIT License
Expand Down Expand Up @@ -1600,7 +1600,9 @@ function jqmIscrollviewRemoveLayerXYProps(e) {
// Setup bindings for window resize and orientationchange

if (this.options.resizeWrapper) {
this._isvBind(this.$window, this.options.resizeEvents, this._windowResizeFunc, "$window");
if (this.options.resizeEvents.length) {
this._isvBind(this.$window, this.options.resizeEvents, this._windowResizeFunc, "$window");
}
if (this.options.scrollTopOnOrientationChange) {
this._isvBind(this.$window, "orientationchange", this._orientationChangeFunc, "$window");
}
Expand All @@ -1626,7 +1628,9 @@ function jqmIscrollviewRemoveLayerXYProps(e) {

// Unbind events
this._isvUnbind(this.$scrollerContent, "updatelayout", "$scrollerContent");
this._isvUnbind(this.$window, this.options.resizeEvents, "$window");
if (this.options.resizeEvents.length) {
this._isvUnbind(this.$window, this.options.resizeEvents, "$window");
}
this._isvUnbind(this.$window, "orientationchange", "$window");
if (this._instanceCount() === 1) {
this._unbindPage("pagebeforeshow");
Expand Down

0 comments on commit f964a2f

Please sign in to comment.