Browse Source
Merge pull request #1785 from WebEtSolutions/dev
Fix parent to parent.length for stop while
pull/1800/head
Artur Arseniev
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/commands/view/SelectComponent.js
|
|
|
@ -70,7 +70,7 @@ module.exports = { |
|
|
|
|
|
|
|
if (!model) { |
|
|
|
let parent = $el.parent(); |
|
|
|
while (!model && parent) { |
|
|
|
while (!model && parent.length > 0) { |
|
|
|
model = parent.data('model'); |
|
|
|
parent = parent.parent(); |
|
|
|
} |
|
|
|
@ -183,7 +183,7 @@ module.exports = { |
|
|
|
|
|
|
|
if (!model) { |
|
|
|
let parent = $el.parent(); |
|
|
|
while (!model && parent) { |
|
|
|
while (!model && parent.length > 0) { |
|
|
|
model = parent.data('model'); |
|
|
|
parent = parent.parent(); |
|
|
|
} |
|
|
|
|