Lines Matching refs:api

8771     evaluate: function(expr, context, api, errorHandler)  argument
8788 cmd = api ?
8789 "with("+api+"){ ("+expr+") }" :
8794 cmd = api ?
8795 "with("+api+"){ "+expr+" }" :
8801 cmd = api ?
8803 "(function(arguments){ with(" + api + "){ " +
12512 var api = {},
12520 api.disabled = false
12521 api.set = function(key, value) {}
12522 api.get = function(key) {}
12523 api.remove = function(key) {}
12524 api.clear = function() {}
12525 api.transact = function(key, transactionFn) {
12526 var val = api.get(key)
12529 api.set(key, val)
12532 api.serialize = function(value) {
12535 api.deserialize = function(value) {
12555 api.set = function(key, val) { storage.setItem(key, api.serialize(val)) }
12556 api.get = function(key) { return api.deserialize(storage.getItem(key)) }
12557 api.remove = function(key) { storage.removeItem(key) }
12558 api.clear = function() { storage.clear() }
12562 api.set = function(key, val) { storage[key] = api.serialize(val) }
12563 api.get = function(key) { return api.deserialize(storage[key] && storage[key].value) }
12564 api.remove = function(key) { delete storage[key] }
12565 api.clear = function() { for (var key in storage ) { delete storage[key] } }
12580 var result = storeFunction.apply(api, args)
12585 api.set = withIEStorage(function(storage, key, val) {
12586 storage.setAttribute(key, api.serialize(val))
12589 api.get = withIEStorage(function(storage, key) {
12590 return api.deserialize(storage.getAttribute(key))
12592 api.remove = withIEStorage(function(storage, key) {
12596 api.clear = withIEStorage(function(storage) {
12607 api.set(namespace, namespace)
12608 if (api.get(namespace) != namespace) { api.disabled = true }
12609 api.remove(namespace)
12611 api.disabled = true
12614 return api
23878 var api = "Firebug.CommandLine.API";
23880 var result = Firebug.context.evaluate(expr, "window", api, Firebug.Console.error);