Skip to content

Commit af7dff0

Browse files
committed
Rename jquery.requestAnimationFrame to jquery.requestanimationframe
1 parent 0fcd76b commit af7dff0

8 files changed

+17
-18
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ To quote part of the Jank Busting article:
2020

2121
Download the [production version][min] or the [development version][max] of version 0.1.2.
2222

23-
[min]: https://raw.github.com/gnarf37/jquery-requestAnimationFrame/0.1.2/dist/jquery.requestAnimationFrame.min.js
24-
[max]: https://raw.github.com/gnarf37/jquery-requestAnimationFrame/0.1.2/dist/jquery.requestAnimationFrame.js
23+
[min]: https://raw.github.com/gnarf37/jquery-requestAnimationFrame/0.1.2/dist/jquery.requestanimationframe.min.js
24+
[max]: https://raw.github.com/gnarf37/jquery-requestAnimationFrame/0.1.2/dist/jquery.requestanimationframe.js
2525

2626
In your web page:
2727

2828
```html
2929
<script src="jquery.js"></script>
30-
<script src="jquery.requestAnimationFrame.min.js"></script>
30+
<script src="jquery.requestanimationframe.min.js"></script>
3131
```
3232

3333
## Documentation
3434

35-
There isn't anything you need to do other than include the `jquery.requestAnimationFrame.js` file to use `requestAnimationFrame`.
35+
There isn't anything you need to do other than include the `jquery.requestanimationframe.js` file to use `requestAnimationFrame`.
3636

3737
You should however beware of the first point above: **Animations in background tabs get paused**.
3838

dist/jquery.requestAnimationFrame.js renamed to dist/jquery.requestanimationframe.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jquery.requestAnimationFrame - 0.1.3-pre
2+
* jquery.requestanimationframe - 0.1.3-pre
33
* https://github.com/gnarf37/jquery-requestAnimationFrame
44
* Requires jQuery 1.8+
55
*
@@ -21,7 +21,7 @@
2121

2222
if ( Number( jQuery.fn.jquery.split( "." )[ 0 ] ) >= 3 ) {
2323
if ( window.console && window.console.warn ) {
24-
window.console.warn( "The jquery.requestAnimationFrame plugin is not needed " +
24+
window.console.warn( "The jquery.requestanimationframe plugin is not needed " +
2525
"in jQuery 3.0 or newer as they handle it natively." );
2626
}
2727
return;

dist/jquery.requestAnimationFrame.min.js renamed to dist/jquery.requestanimationframe.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/jquery.requestAnimationFrame.min.map renamed to dist/jquery.requestanimationframe.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
"name": "jquery.requestAnimationFrame",
3-
"title": "jQuery requestAnimationFrame",
2+
"name": "jquery.requestanimationframe",
43
"description": "Replaces the standard jQuery timer loop with requestAnimationFrame where supported. Requires jQuery >=1.8",
54
"version": "0.1.3-pre",
6-
"main": "dist/jquery.requestAnimationFrame.js",
5+
"main": "dist/jquery.requestanimationframe.js",
76
"homepage": "https://github.com/gnarf37/jquery-requestAnimationFrame",
87
"author": {
98
"name": "Corey Frang",

src/jquery.requestAnimationFrame.js renamed to src/jquery.requestanimationframe.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jquery.requestAnimationFrame - @VERSION
2+
* jquery.requestanimationframe - @VERSION
33
* https://github.com/gnarf37/jquery-requestAnimationFrame
44
* Requires jQuery 1.8+
55
*
@@ -21,7 +21,7 @@
2121

2222
if ( Number( jQuery.fn.jquery.split( "." )[ 0 ] ) >= 3 ) {
2323
if ( window.console && window.console.warn ) {
24-
window.console.warn( "The jquery.requestAnimationFrame plugin is not needed " +
24+
window.console.warn( "The jquery.requestanimationframe plugin is not needed " +
2525
"in jQuery 3.0 or newer as they handle it natively." );
2626
}
2727
return;

test/jquery.requestAnimationFrame.html renamed to test/jquery.requestanimationframe.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css" media="screen">
1111
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
1212

13-
<script src="../src/jquery.requestAnimationFrame.js"></script>
14-
<script src="jquery.requestAnimationFrame_test.js"></script>
13+
<script src="../src/jquery.requestanimationframe.js"></script>
14+
<script src="jquery.requestanimationframe_test.js"></script>
1515
</head>
1616
<body>
1717
<div id="qunit"></div>

test/jquery.requestAnimationFrame_test.js renamed to test/jquery.requestanimationframe_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
( function() {
22
"use strict";
33

4-
QUnit.module( "jQuery.requestAnimationFrame" );
4+
QUnit.module( "jquery.requestanimationframe" );
55

66
QUnit.test( "Animations still work", 1, function( assert ) {
77
var done = assert.async();

0 commit comments

Comments
 (0)