From a4804be0086798610f23bf1b386641b6daa3ff2a Mon Sep 17 00:00:00 2001
From: Manuel Carrasco MoƱino <manuel.carrasco.m@gmail.com>
Date: Sun, 3 Nov 2013 12:40:47 +0100
Subject: remove temporary data to avoid memory leaks

---
 .../java/com/google/gwt/query/client/plugins/effects/Transitions.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java
index b128590b..ae79422c 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/Transitions.java
@@ -1,6 +1,6 @@
 /*
- * Copyright 2013, The gwtquery team.
  *
+ * Copyright 2013, The gwtquery team.
  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  * in compliance with the License. You may obtain a copy of the License at
  *
@@ -286,6 +286,8 @@ public class Transitions extends GQuery {
     // schedule setting css animated properties so as we are sure css transition property has been set.
     delay(0, new Function(){public void f() {
       css(p);
+      // prevent memory leak
+      removeData(TRANSFORM);
     }});
     
     // restore oldTransitions in the element, and use the queue to prevent more effects being run.
-- 
cgit v1.2.3