Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Exports for Node.js and Browserify #67

Merged
merged 1 commit into from
Oct 27, 2014
Merged

Exports for Node.js and Browserify #67

merged 1 commit into from
Oct 27, 2014

Conversation

zero-is-one
Copy link
Contributor

Has backwards compatibility for the old require() API. If we're in the browser, export as a standard global object.

Has with backwards-compatibility for the old `require()` API. If we're in the browser, export as a standard global object.
@ebidel
Copy link
Contributor

ebidel commented Aug 9, 2014

Before this PR can be merged, please sign the CLA. See the CONTRIBUTING guide.

@ebidel ebidel added cla: no and removed cla: yes labels Aug 9, 2014
@ebidel
Copy link
Contributor

ebidel commented Aug 11, 2014

Thanks for signing the CLA!

@ebidel ebidel removed the cla: no label Aug 11, 2014
@zero-is-one
Copy link
Contributor Author

No problem. Also you might want to update the contributing guidelines for this repo since right now it points to a broken link.

@mtford90
Copy link

mtford90 commented Sep 5, 2014

👍

@wmira
Copy link

wmira commented Oct 25, 2014

wonder when is this going to be merged..

@jmesserly jmesserly assigned jmesserly and unassigned rafaelw Oct 27, 2014
global.Observer.hasObjectObserve = hasObserve;
global.ArrayObserver = ArrayObserver;
global.ArrayObserver.calculateSplices = function(current, previous) {
// Export the observe-js object for **Node.js**, with
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason to have the ** around Node.js?

@jmesserly
Copy link
Contributor

@wmira -- doh, I guess the assigned reviewer didn't notice it. I've assigned it to myself.

@victorsigma -- apologies for taking so long to get to this! If you're still around, I added some comments. We can also just merge this and I could make the suggested tweaks (but they're very minor so not a big deal). Mostly I'm just wondering your thoughts, and for my own knowledge if there's a standard style we can use for this sort of cross browser/node.js module.

@jmesserly
Copy link
Contributor

LGTM. thanks again.

jmesserly pushed a commit that referenced this pull request Oct 27, 2014
Exports for Node.js and Browserify
@jmesserly jmesserly merged commit 2f95aa6 into googlearchive:master Oct 27, 2014
@wmira
Copy link

wmira commented Oct 28, 2014

@jmesserly this should work for me. any chance we get the npm build updated?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants