1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- if(!dojo._hasResource["dojox.lang.aspect.memoizerGuard"]){
- dojo._hasResource["dojox.lang.aspect.memoizerGuard"] = true;
- dojo.provide("dojox.lang.aspect.memoizerGuard");
- (function(){
- var aop = dojox.lang.aspect,
- reset = function(/*String|Array?*/ method){
- var that = aop.getContext().instance, t;
- if(!(t = that.__memoizerCache)){ return; }
- if(arguments.length == 0){
- delete that.__memoizerCache;
- }else if(dojo.isArray(method)){
- dojo.forEach(method, function(m){ delete t[m]; });
- }else{
- delete t[method];
- }
- };
- aop.memoizerGuard = function(/*String|Array?*/ method){
-
-
-
-
-
-
-
-
-
- return {
- after: function(){ reset(method); }
- };
- };
- })();
- }
|