Lines Matching defs:api

2112 },evaluate:function(expr,context,api,errorHandler){context=context||"window";
2114 if(context=="window"){if(isObjectLiteral){cmd=api?"with("+api+"){ ("+expr+") }":"("+expr+")"
2115 }else{cmd=api?"with("+api+"){ "+expr+" }":expr
2116 }}else{cmd=api?"(function(arguments){ with("+api+"){ "+expr+" } }).call("+context+",undefined)":"(function(arguments){ "+expr+" }).call("+context+",undefined)"
3068 (function(){var store=(function(){var api={},win=window,doc=win.document,localStorageName="localStorage",globalStorageName="globalStorage",namespace="__firebug__storejs__",storage;
3069 api.disabled=false;
3070 api.set=function(key,value){};
3071 api.get=function(key){};
3072 api.remove=function(key){};
3073 api.clear=function(){};
3074 api.transact=function(key,transactionFn){var val=api.get(key);
3077 api.set(key,val)
3079 api.serialize=function(value){return JSON.stringify(value)
3081 api.deserialize=function(value){if(typeof value!="string"){return undefined
3089 api.set=function(key,val){storage.setItem(key,api.serialize(val))
3091 api.get=function(key){return api.deserialize(storage.getItem(key))
3093 api.remove=function(key){storage.removeItem(key)
3095 api.clear=function(){storage.clear()
3098 api.set=function(key,val){storage[key]=api.serialize(val)
3100 api.get=function(key){return api.deserialize(storage[key]&&storage[key].value)
3102 api.remove=function(key){delete storage[key]
3104 api.clear=function(){for(var key in storage){delete storage[key]
3112 var result=storeFunction.apply(api,args);
3116 }api.set=withIEStorage(function(storage,key,val){storage.setAttribute(key,api.serialize(val));
3119 api.get=withIEStorage(function(storage,key){return api.deserialize(storage.getAttribute(key))
3121 api.remove=withIEStorage(function(storage,key){storage.removeAttribute(key);
3124 api.clear=withIEStorage(function(storage){var attributes=storage.XMLDocument.documentElement.attributes;
3131 }}}try{api.set(namespace,namespace);
3132 if(api.get(namespace)!=namespace){api.disabled=true
3133 }api.remove(namespace)
3134 }catch(e){api.disabled=true
3135 }return api
6286 },evaluate:function(expr){var api="Firebug.CommandLine.API";
6287 var result=Firebug.context.evaluate(expr,"window",api,Firebug.Console.error);