Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard JS integration #307

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ node_js:
- "0.12"
- "0.10"
- "0.8"
- "5.8"
before_script:
- npm run lint
12 changes: 6 additions & 6 deletions defer.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Create a deferredConfig prototype so that we can check for it when reviewing the configs later.
function DeferredConfig () {
}
DeferredConfig.prototype.resolve = function (config) {};
DeferredConfig.prototype.resolve = function (config) {}

// Accept a function that we'll use to resolve this value later and return a 'deferred' configuration value to resolve it later.
function deferConfig (func) {
var obj = Object.create(DeferredConfig.prototype);
obj.resolve = func;
return obj;
var obj = Object.create(DeferredConfig.prototype)
obj.resolve = func
return obj
}

module.exports.deferConfig = deferConfig;
module.exports.DeferredConfig = DeferredConfig;
module.exports.deferConfig = deferConfig
module.exports.DeferredConfig = DeferredConfig