Lines Matching refs:scope
20 (function(scope) {
30 if (scope['CFInstance']) {
228 * @param {function?} thisObject Optional a scope to use with callback
240 // scope,
251 * returns a new function bound to scope with a variable number of positional
255 var _hitchArgs = function(scope, method /*,...*/) {
260 var f = named ? (scope || window)[method] : method;
261 return f && f.apply(scope || this, pre.concat(args));
267 * object) to scope, optionally partially applying positional arguments.
268 * @param {Object} scope the object to hitch the method to
273 var hitch = function(scope, method){
279 method = scope;
280 scope = null;
284 scope = scope || window;
285 if (!scope[method]) {
287 ['scope["', method, '"] is null (scope="', scope, '")'].join('')
291 return scope[method].apply(scope, arguments || []);
295 return !scope ?
298 return method.apply(scope, arguments || []);
515 * specify the scope to search in. If a node is passed, it's returned as-is.
703 * allowing you to specify a scope (unlike addCallbacks).
705 * is treated as a scope
707 * the scope cb.
723 * is treated as a scope
725 * the scope cb.
738 * is treated as a scope
740 * the scope cb.
1313 * expose. If a name is provided, it's looked up from the passed scope.
1314 * If no scope is provided, the global scope is queried for a function
1316 * @param {Object} scope Optional A scope to bind the passed method to. If
1318 * located on the passed scope and bound to it.
1324 RPC.prototype.expose = function(name, method, scope, domains) {
1325 scope = scope || window;
1326 method = isString(method) ? scope[method] : method;
1330 return method.apply(scope, obj.params);
1338 var a = [name, method, scope, domains];
1645 // expose CFInstance to the external scope. We've already checked to make
1647 scope.CFInstance = CFInstance;