File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,6 @@ var oc = oc || {};
5151 isBool = function ( a ) {
5252 return typeof a == 'boolean' ;
5353 } ,
54- isFunction = function ( a ) {
55- return typeof a == 'function' ;
56- } ,
5754 timeout = setTimeout ,
5855 ocCmd = oc . cmd ,
5956 ocConf = oc . conf ,
@@ -136,7 +133,7 @@ var oc = oc || {};
136133 var getHeaders = function ( ) {
137134 return $ . extend (
138135 { Accept : 'application/vnd.oc.unrendered+json' } ,
139- isFunction ( ocConf . globalHeaders )
136+ typeof ocConf . global == 'function'
140137 ? ocConf . globalHeaders ( )
141138 : ocConf . globalHeaders
142139 ) ;
@@ -158,7 +155,7 @@ var oc = oc || {};
158155
159156 // A minimal require.js-ish that uses l.js
160157 oc . require = function ( nameSpace , url , callback ) {
161- if ( isFunction ( url ) ) {
158+ if ( ! callback ) {
162159 callback = url ;
163160 url = nameSpace ;
164161 nameSpace = undefined ;
You can’t perform that action at this time.
0 commit comments