Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix dependency when property is already defined
- Loading branch information
Showing
with
4 additions
and
0 deletions.
-
+4
−0
framer/BaseClass.coffee
|
@@ -74,6 +74,10 @@ class exports.BaseClass extends EventEmitter |
|
|
for depend in descriptor.depends |
|
|
if depend not in DefaultPropertyOrder |
|
|
DefaultPropertyOrder.push(depend) |
|
|
index = DefaultPropertyOrder.indexOf(propertyName) |
|
|
if index isnt -1 |
|
|
DefaultPropertyOrder.splice(index, 1) |
|
|
DefaultPropertyOrder.push(propertyName) |
|
|
if propertyName not in DefaultPropertyOrder |
|
|
DefaultPropertyOrder.push(propertyName) |
|
|
|
|
|