Skip to content

Commit

Permalink
Prototype beans should never be set up automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
bclinkinbeard committed Apr 19, 2011
1 parent 63e31b6 commit 80c34c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/swizframework/core/BeanFactory.as
Expand Up @@ -235,7 +235,7 @@ package org.swizframework.core
bean.beanFactory = this;
beans.push( bean );

if( autoSetUpBean )
if( autoSetUpBean && !( bean is Prototype ) )
setUpBean( bean );

return bean;
Expand Down

0 comments on commit 80c34c6

Please sign in to comment.