overdrive-eg-opac: Fix JS error on 2.10
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Mon, 9 May 2016 22:25:43 +0000 (15:25 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Mon, 9 May 2016 22:25:43 +0000 (15:25 -0700)
overdrive-eg-opac/build/od_pages_myopac.js

index 66cab37..9df9183 100644 (file)
@@ -35,7 +35,7 @@ define(['jquery-noconflict', 'lodash', 'od_config', 'jquery-ui', 'od_action', 'o
           _results = [];
           for (_i = 0, _len = _ref.length; _i < _len; _i++) {
             v = _ref[_i];
-            _results.push(+(v.textContent.match(/\d+/)[0]));
+            _results.push(+(v.textContent.match(/\d+/) ? v.textContent.match(/\d+/)[0] : void 0));
           }
           return _results;
         }).call(this);