summaryrefslogtreecommitdiff
path: root/web-ui/app/js/helpers/iterator.js
diff options
context:
space:
mode:
authorBruno Wagner <bwagner@thoughtworks.com>2014-10-07 15:01:42 +0200
committerBruno Wagner <bwagner@thoughtworks.com>2014-10-07 15:01:54 +0200
commit6299531f4c8f7daa1b4afab45d0439f635b03982 (patch)
tree92b2876e732731e5219e50ef7719c72ec2cb478a /web-ui/app/js/helpers/iterator.js
parent88abefd3e62fb65a08dde62a7d7e4ce1fa22f563 (diff)
Fixed jshint errors
Diffstat (limited to 'web-ui/app/js/helpers/iterator.js')
-rw-r--r--web-ui/app/js/helpers/iterator.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web-ui/app/js/helpers/iterator.js b/web-ui/app/js/helpers/iterator.js
index 093d8df1..b5b44379 100644
--- a/web-ui/app/js/helpers/iterator.js
+++ b/web-ui/app/js/helpers/iterator.js
@@ -14,6 +14,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
*/
+'use strict';
define(function () {
return Iterator;
@@ -24,7 +25,7 @@ define(function () {
this.elems = elems;
this.hasPrevious = function () {
- return this.index != 0;
+ return this.index !== 0;
};
this.hasNext = function () {
@@ -51,7 +52,7 @@ define(function () {
var removed = this.current(),
toRemove = this.index;
- !this.hasNext() && this.index--;
+ if(!this.hasNext()) { this.index--; }
this.elems.remove(toRemove);
return removed;
};