code: function(func)
      {
          if (func.__bridge_id__ == undefined)
          {
              func.__bridge_id__ = this.makeID(this.nextLocalFuncID++);
              this.localFunctionCache[func.__bridge_id__] = func;
          }
          return func.__bridge_id__;
      }
docs: reutrns the ID of the given function; if it doesnt exist it is created and added to the local cache