Skip to content
Browse files

Use undefined check instead of null

  • Loading branch information...
1 parent 4ed388e commit e2b69dcda17b36652ede23d2cc34b2335df9b94c @david-martin david-martin committed
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');

0 comments on commit e2b69dc

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