+
Skip to content

httprequest - add request object to constructor #193

Closed
@reportbase

Description

@reportbase

Add this:

var Github = function(options, httpxhr) {
var API_URL = options.apiUrl || 'https://api.github.com';

  xhr = httpxhr || new XMLHttpRequest();

than we don't need to implement light wrappers around all the httprequest callbacks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载