File tree Expand file tree Collapse file tree
darkspore_server/res/data/www/static/assets/js Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55// https://github.com/inexorabletash/polyfill/blob/master/es5.js
66Array . 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+
813var _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 ;
You can’t perform that action at this time.
0 commit comments