Permalink
Browse files

Fix dependency when property is already defined

  • Loading branch information...
nvh committed Jan 16, 2018
1 parent e3a10c8 commit 1aec23d99f6aa7cc7a1822fd5805d5d4dd5ef007
Showing with 4 additions and 0 deletions.
  1. +4 −0 framer/BaseClass.coffee
View
@@ -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)

0 comments on commit 1aec23d

Please sign in to comment.