Skip to content

Commit

Permalink
Release 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
darsain committed Apr 5, 2013
1 parent d3ed62a commit dca7d32
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Expand Up @@ -82,7 +82,7 @@ module.exports = function(grunt) {
bumpup: ['component.json', '<%= pkg.name %>.jquery.json'],

// Commit changes and tag the latest commit with a version from JSON file.
tagrelease: ['component.json']
tagrelease: 'component.json'
});

// These plugins provide necessary tasks.
Expand Down
4 changes: 2 additions & 2 deletions component.json
Expand Up @@ -2,8 +2,8 @@
"name": "motio",
"title": "Motio",
"description": "Sprite based animations and panning.",
"version": "2.0.0",
"date": "2013-04-05 17:09:39 +00:00",
"version": "2.0.1",
"date": "2013-04-05 19:14:14 +00:00",
"homepage": "https://github.com/Darsain/motio",
"main": "./dist/motio.js",
"bugs": "https://github.com/Darsain/motio/issues",
Expand Down
15 changes: 6 additions & 9 deletions dist/jquery.motio.js
Expand Up @@ -135,8 +135,7 @@
* @return {Object} Motio instance.
*/
self.toStart = function (immediate, callback) {
self.to(0, immediate, callback);
return self;
return self.to(0, immediate, callback);
};

/**
Expand All @@ -148,8 +147,7 @@
* @return {Object} Motio instance.
*/
self.toEnd = function (immediate, callback) {
self.to(frames.length - 1, immediate, callback);
return self;
return self.to(frames.length - 1, immediate, callback);
};

/**
Expand All @@ -163,7 +161,7 @@
*/
self.to = function (frame, immediate, callback) {
if (isPan || !isNumber(frame) || frame < 0 || frame >= frames.length) {
return;
return self;
}

// Handle optional argument
Expand All @@ -183,7 +181,7 @@
callback.call(self);
}
self.pause();
return;
return self;
}
}

Expand All @@ -195,6 +193,8 @@

// Resume rendering if paused
resume();

return self;
};

/**
Expand Down Expand Up @@ -521,9 +521,6 @@
speedY: 0, // Vertical panning speed in pixels per second.
bgWidth: 0, // Width of the background image (optional).
bgHeight: 0 // Height of the background image (optional).
// it is needed so the script will know when to reset the background position to 0, and thus not overflow the JavaScript 2^53 integer limit
// when 0 (=unknown), the position will iterate into ridiculous numbers, which will in a few million years result into a buggy animation ...
// you basically set this if you have OCD
};
})(window);
/*global Motio */
Expand Down
10 changes: 5 additions & 5 deletions dist/jquery.motio.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 6 additions & 9 deletions dist/motio.js
Expand Up @@ -135,8 +135,7 @@
* @return {Object} Motio instance.
*/
self.toStart = function (immediate, callback) {
self.to(0, immediate, callback);
return self;
return self.to(0, immediate, callback);
};

/**
Expand All @@ -148,8 +147,7 @@
* @return {Object} Motio instance.
*/
self.toEnd = function (immediate, callback) {
self.to(frames.length - 1, immediate, callback);
return self;
return self.to(frames.length - 1, immediate, callback);
};

/**
Expand All @@ -163,7 +161,7 @@
*/
self.to = function (frame, immediate, callback) {
if (isPan || !isNumber(frame) || frame < 0 || frame >= frames.length) {
return;
return self;
}

// Handle optional argument
Expand All @@ -183,7 +181,7 @@
callback.call(self);
}
self.pause();
return;
return self;
}
}

Expand All @@ -195,6 +193,8 @@

// Resume rendering if paused
resume();

return self;
};

/**
Expand Down Expand Up @@ -521,8 +521,5 @@
speedY: 0, // Vertical panning speed in pixels per second.
bgWidth: 0, // Width of the background image (optional).
bgHeight: 0 // Height of the background image (optional).
// it is needed so the script will know when to reset the background position to 0, and thus not overflow the JavaScript 2^53 integer limit
// when 0 (=unknown), the position will iterate into ridiculous numbers, which will in a few million years result into a buggy animation ...
// you basically set this if you have OCD
};
})(window);
10 changes: 5 additions & 5 deletions dist/motio.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion motio.jquery.json
Expand Up @@ -2,7 +2,7 @@
"name": "motio",
"title": "Motio",
"description": "Sprite based animations and panning.",
"version": "2.0.0",
"version": "2.0.1",
"keywords": [
"sprite",
"panning",
Expand Down

0 comments on commit dca7d32

Please sign in to comment.