Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make jshint happy

  • Loading branch information...
commit 8ac98ec59943154dd2fed21e4029c6667246b15b 1 parent f4c0838
@ichernev ichernev authored
Showing with 5 additions and 5 deletions.
  1. +2 −2 moment.js
  2. +2 −2 test/moment/create.js
  3. +1 −1  test/moment/is_moment.js
View
4 moment.js
@@ -387,8 +387,8 @@
}
function cloneMoment(m) {
- var result = {};
- for (var i in m) {
+ var result = {}, i;
+ for (i in m) {
if (m.hasOwnProperty(i) && momentProperties.hasOwnProperty(i)) {
result[i] = m[i];
}
View
4 test/moment/create.js
@@ -106,13 +106,13 @@ exports.create = {
},
"cloning moment works with weird clones" : function (test) {
- var extend = function(a, b) {
+ var extend = function (a, b) {
var i;
for (i in b) {
a[i] = b[i];
}
return a;
- };
+ },
now = moment(),
nowu = moment.utc();
View
2  test/moment/is_moment.js
@@ -5,7 +5,7 @@ exports.is_moment = {
test.expect(13);
var MyObj = function () {},
- extend = function(a, b) {
+ extend = function (a, b) {
var i;
for (i in b) {
a[i] = b[i];
Please sign in to comment.
Something went wrong with that request. Please try again.