aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/ui.core.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js
index 283199f75..cbffa15ea 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -312,10 +312,14 @@ $.widget = function(name, prototype) {
this.element = $(element)
.bind('setData.' + name, function(event, key, value) {
- return self._setData(key, value);
+ if (event.target == element) {
+ return self._setData(key, value);
+ }
})
.bind('getData.' + name, function(event, key) {
- return self._getData(key);
+ if (event.target == element) {
+ return self._getData(key);
+ }
})
.bind('remove', function() {
return self.destroy();