Add an object to Javascript.
495157
def add_to_js(self, name, var):
        """"""
        frame = self.page().mainFrame()
        frame.addToJavaScriptWindowObject(name, var)
1332097
def addobject(bunchdt, data, commdct, key, theidf, aname=None, **kwargs):
    """"""
    obj = newrawobject(data, commdct, key)
    abunch = obj2bunch(data, commdct, obj)
    if aname:
        namebunch(abunch, aname)
    data.dt[key].append(obj)
    bunchdt[key].append(abunch)
    for key, value in list(kwargs.items()):
        abunch[key] = value
    return abunch
981541
def add_object(self, obj):
        

        # delegate to SchemaType object
        schema_generator = self._get_generator_for_object(obj)
        schema_generator.add_object(obj)

        # return self for easy method chaining
        return self
108297
def create(cls, object_version, key, value):
        """"""
        assert len(key) < 256
        assert len(value) < 256
        with db.session.begin_nested():
            obj = cls(version_id=as_object_version_id(object_version),
                      key=key,
                      value=value)
            db.session.add(obj)
        return obj
257570
def _add(self, codeobj):
        """"""
        assert isinstance(codeobj, CodeExpression.TYPES)
        self.arguments = self.arguments + (codeobj,)
888628
function add(el, fn){
  el.addEventListener('load', function(_, e){ fn(null, e); }, false);
  el.addEventListener('error', function(e){
    var err = new Error('script error "' + el.src + '"');
    err.event = e;
    fn(err);
  }, false);
}
927582
def fill(self, **kwargs):
        '''  '''
        setattr(self.obj, self.name, self.get(**kwargs))
520704
function addData(a)
        {
            if(isObject(a.event.value) || isArray(a.event.value))
            {
                if(!isObservable(a.event.value))
                {
                    a.preventDefault();
                    var local = a.event.local,
                        str = local.__kbscopeString+(local.__kbscopeString.length !== 0 ? '.' : '')+a.key,
                        builder = (isObject(a.event.value) ? KObject : KArray)(local.__kbname,local,str);
                    
                    overwrite(builder).parseData(a.event.value);
                    if(local[a.key] === undefined)
                    {
                      local.add(a.key,builder);
                    }
                    else if(isArray(local))
                    {
                      local.splice(a.key,0,builder);
                    }
                    else if(isObject(local))
                    {
                      local.set(a.key,builder);
                    }
                }
            }
        }
1290526
def addObject(self, object, name=None):
    
    if name is None:
      name = len(self.objects)

    self.objects[name] = object
26339
def add(self, name, obj=None):
        """"""
        if obj:
            text = '\n::\n\n' + indent(str(obj))
        else:
            text = views.view(name, self.dstore)
        if text:
            title = self.title[name]
            line = '-' * len(title)
            self.text += '\n'.join(['\n\n' + title, line, text])
1089015
public JSONObject addObject(JSONObject obj, String objectID) throws AlgoliaException {
    return this.addObject(obj, objectID, RequestOptions.empty);
  }
467117
def add_property(self, prop, objects=()):
        """"""
        self._properties.add(prop)
        self._objects |= objects
        self._pairs.update((o, prop) for o in objects)
644406
public function &add(JavascriptObject $js)
    {
        if ($this->router->isAjax()) {

            /* @var $ajax \Core\Ajax\Ajax */
            $ajax = $this->di->get('core.ajax');

            switch ($js->getType()) {
                case 'file':
                    $cmd = $ajax->createActCommand();
                    $cmd->getScript($js->getScript());
                    break;
            }

            $return = null;

            return $return;
        }

        $area = $js->getDefer() ? 'below' : 'top';

        if ($this->mode == 'core') {
            $this->core_js[$area][] = $js;
        }
        else {
            $this->app_js[$area][] = $js;
        }

        return $js;
    }
139735
def populate_obj(self, obj, keys=None):
        """"""
        keys = keys or self.keys()
        for key in keys:
            key = key.upper()
            value = self.get(key, empty)
            if value is not empty:
                setattr(obj, key, value)
929728
def add_object(o)
      if !@objects.include?(o)
        index = @objects.index do |object|
          object.z > o.z
        end
        if index
          @objects.insert(index, o)
        else
          @objects.push(o)
        end
        true
      else
        false
      end
    end
1127801
def add(self, item):
        """"""
        if not item in self.items:
            self.items.append(item)
51969
@Override
  public void add(ApiType obj) {
    String key = keyFunc.apply(obj);
    lock.lock();
    try {
      ApiType oldObj = this.items.get(key);
      this.items.put(key, obj);
      this.updateIndices(oldObj, obj, key);
    } finally {
      lock.unlock();
    }
  }