Skip to content

Commit d79276f

Browse files
authored
Merge pull request #26 from r0ptr/fix/registration-window
Fix js error in registration window
2 parents 53ab3d5 + 7d1a2cb commit d79276f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

darkspore_server/res/data/www/static/assets/js/eawebkit-jquery.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@
55
// https://github.com/inexorabletash/polyfill/blob/master/es5.js
66
Array.isArray = Array.isArray || function (o) { return Boolean(o && Object.prototype.toString.call(Object(o)) === '[object Array]'); };
77

8+
var _typeOf = function(obj) {
9+
var val = Object.prototype.toString.call(obj); // eg. '[object String]'
10+
return val.substr(8, val.length - 9).toLowerCase();
11+
}
12+
813
var _arrayOfElementsWithIdentifier = function(domId) {
914
var _dom = null;
10-
if ($.type(domId) === "string") {
15+
if (_typeOf(domId) === "string") {
1116
var prefix = domId.substr(0,1);
1217
var realId = domId.substr(1);
1318
if (prefix === '#') _dom = [document.getElementById(realId)];
@@ -169,7 +174,4 @@ var $ = function(domId) {
169174
return obj;
170175
};
171176

172-
$.type = function() {
173-
var val = Object.prototype.toString.call(obj); // eg. '[object String]'
174-
return val.substr(8, val.length - 9).toLowerCase();
175-
}
177+
$.type = _typeOf;

0 commit comments

Comments
 (0)