a:6:{s:9:"#provides";s:23:"dojox.lang.aspect.cflow";s:9:"#resource";s:20:"lang/aspect/cflow.js";s:23:"dojox.lang.aspect.cflow";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:8:"instance";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:119:"An instance to be matched. If null, any context will be examined. Otherwise the context should belong to this instance.";}s:6:"method";a:3:{s:8:"optional";b:1;s:4:"type";s:19:"String|RegExp|Array";s:7:"summary";s:186:"An optional pattern to be matched against a method name. Can be a string, a RegExp object or an array of strings and RegExp objects. If it is omitted, any name will satisfy the criteria.";}}s:6:"source";s:584:" if(arguments.length > 1 && !(method instanceof Array)){ method = [method]; } var contextStack = aop.getContextStack(); for(var i = contextStack.length - 1; i >= 0; --i){ var c = contextStack[i]; // check if instance matches if(instance && c.instance != instance){ continue; } if(!method){ return true; } var n = c.joinPoint.targetName; for(var j = method.length - 1; j >= 0; --j){ var m = method[j]; if(m instanceof RegExp){ if(m.test(n)){ return true; } }else{ if(n == m){ return true; } } } } return false; // Boolean";s:7:"summary";s:118:"Returns true if the context stack contains a context for a given instance that satisfies a given method name criteria.";s:7:"returns";s:7:"Boolean";}s:17:"dojox.lang.aspect";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:10:"dojox.lang";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}