29 lines
468 B
JavaScript
29 lines
468 B
JavaScript
//>>built
|
|
define(["dijit","dojo","dojox"],function(_1,_2,_3){
|
|
_2.provide("dojox.lang.aspect.memoizerGuard");
|
|
(function(){
|
|
var _4=_3.lang.aspect,_5=function(_6){
|
|
var _7=_4.getContext().instance,t;
|
|
if(!(t=_7.__memoizerCache)){
|
|
return;
|
|
}
|
|
if(arguments.length==0){
|
|
delete _7.__memoizerCache;
|
|
}else{
|
|
if(_2.isArray(_6)){
|
|
_2.forEach(_6,function(m){
|
|
delete t[m];
|
|
});
|
|
}else{
|
|
delete t[_6];
|
|
}
|
|
}
|
|
};
|
|
_4.memoizerGuard=function(_8){
|
|
return {after:function(){
|
|
_5(_8);
|
|
}};
|
|
};
|
|
})();
|
|
});
|