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

Testing using Jest #35

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Testing using Jest #35

wants to merge 13 commits into from

Conversation

kitten
Copy link

@kitten kitten commented Jun 8, 2015

No description provided.

JeremyFagis and others added 13 commits April 23, 2015 10:47
This commit modifies the function form of the module to implement
a pattern, that loads the module in CommonJS, AMD and Browser
Globals. Therefore it tackles #3.
Sprint can now be loaded in any CommonJS-like environment,
AMD-like environments and regularly in the browser.

* Call the function wrapper with the global this
* Make Sprint a local variable
* Export Sprint for AMD and CommonJS
* Set `this.$` and `this.Sprint` for browsers
The offset was calculated relative to the viewport.
pageYOffset / pageXOffset must be added to correct
the result and return the offset relative to the
whole document, like jQuery does.
When the height method was called for document, the
method just retuned undefined. It returned before
any value was calculated.

* Added an exception for document in if clause
* All properties for document height / width
* Max call to select biggest value
* New removeNaN helper function to clean array for Math.max
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants