Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use undefined check instead of null

  • Loading branch information...
commit e2b69dcda17b36652ede23d2cc34b2335df9b94c 1 parent 4ed388e
@david-martin david-martin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 client/default/js/init.js
View
4 client/default/js/init.js
@@ -5,8 +5,8 @@ $fh.ready(function () {
var myScroll;
function init () {
- if (null == iScroll) {
- window.iScroll = exports.iScroll;
+ if ('undefined' === typeof iScroll) {
+ iScroll = exports.iScroll;
}
myScroll = new iScroll('content');
Please sign in to comment.
Something went wrong with that request. Please try again.