aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/010-libphotofloat.js
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-17 02:32:54 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-17 02:32:54 -0400
commit346b9eee43f574ab2fba14439d53a2b340cccd25 (patch)
treec009f1857065ed09371c63f5f582d746551ee197 /web/js/010-libphotofloat.js
parentAlign to bottom on skinny window. (diff)
downloadPhotoFloat-346b9eee43f574ab2fba14439d53a2b340cccd25.tar.xz
PhotoFloat-346b9eee43f574ab2fba14439d53a2b340cccd25.zip
Proper equality comparisons.
Diffstat (limited to '')
-rw-r--r--web/js/010-libphotofloat.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/js/010-libphotofloat.js b/web/js/010-libphotofloat.js
index 588fee0..d1defad 100644
--- a/web/js/010-libphotofloat.js
+++ b/web/js/010-libphotofloat.js
@@ -46,7 +46,7 @@
};
PhotoFloat.trimExtension = function(name) {
var index = name.lastIndexOf(".");
- if (index != -1)
+ if (index !== -1)
return name.substring(0, index)
return name;
};
@@ -131,7 +131,7 @@
if (!hash.length) {
album = PhotoFloat.cachePath("root");
photo = null;
- } else if (index != -1 && index != hash.length - 1) {
+ } else if (index !== -1 && index !== hash.length - 1) {
photo = hash.substring(index + 1);
album = hash.substring(0, index);
} else {
@@ -140,9 +140,9 @@
}
this.album(album, function(theAlbum) {
var i = -1;
- if (photo != null) {
+ if (photo !== null) {
for (i = 0; i < theAlbum.photos.length; ++i) {
- if (PhotoFloat.cachePath(theAlbum.photos[i].name) == photo) {
+ if (PhotoFloat.cachePath(theAlbum.photos[i].name) === photo) {
photo = theAlbum.photos[i];
break;
}