Skip to content
Browse files

adding a further check

adding a further check
  • Loading branch information...
1 parent a71e9f9 commit b0de80369f0c163b944cf053261f90e91d7507a3 Cristian Carlesso committed Sep 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Element/Element.js
View
2 Source/Element/Element.js
@@ -913,7 +913,7 @@ Element.implement({
},
removeListener: function(type, fn){
- if (fn.$ref){
+ if (type == 'unload' && fn.$ref){
var old = fn;
fn = fn.$ref;
delete old.$ref;

0 comments on commit b0de803

Please sign in to comment.
Something went wrong with that request. Please try again.