Skip to content

Commit

Permalink
Fix move down button of array editor being show even on the last element
Browse files Browse the repository at this point in the history
  • Loading branch information
benurb committed Feb 12, 2015
1 parent 27f2e16 commit 0ce8744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editors/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ JSONEditor.defaults.editors.array = JSONEditor.AbstractEditor.extend({

$each(this.rows,function(i,editor) {
// Hide the move down button for the last row
if(editor.movedown_buttons) {
if(editor.movedown_button) {
if(i === self.rows.length - 1) {
editor.movedown_button.style.display = 'none';
}
Expand Down

0 comments on commit 0ce8744

Please sign in to comment.