Permalink
Browse files

fixed bug #179

  • Loading branch information...
1 parent c106342 commit abf0d3bb166e1aecd7c71643b81db087c9d08588 @2250918808 2250918808 committed Jul 2, 2014
Showing with 34 additions and 21 deletions.
  1. +8 −8 build/bui-min.js
  2. +4 −2 build/bui.js
  3. +3 −3 build/common-min.js
  4. +4 −2 build/common.js
  5. +2 −2 build/seed-min.js
  6. +4 −2 build/seed.js
  7. +4 −2 src/common/component/uibase/align.js
  8. +5 −0 test/dialog.php
View
Oops, something went wrong.
View
@@ -4940,13 +4940,15 @@ define('bui/component/uibase/align',['bui/ua'],function (require) {
},
__bindUI : function(){
var _self = this;
+
+ var fn = BUI.wrapBehavior(_self,'handleWindowResize');
_self.on('show',function(){
- $(window).on('resize',BUI.wrapBehavior(_self,'handleWindowResize'));
+ $(window).on('resize',fn);
});
_self.on('hide',function(){
- $(window).off('resize',BUI.getWrapBehavior(_self,'handleWindowResize'));
+ $(window).off('resize',fn);
});
},
//\u5904\u7406window resize\u4e8b\u4ef6
View
Oops, something went wrong.
View
@@ -3947,13 +3947,15 @@ define('bui/component/uibase/align',['bui/ua'],function (require) {
},
__bindUI : function(){
var _self = this;
+
+ var fn = BUI.wrapBehavior(_self,'handleWindowResize');
_self.on('show',function(){
- $(window).on('resize',BUI.wrapBehavior(_self,'handleWindowResize'));
+ $(window).on('resize',fn);
});
_self.on('hide',function(){
- $(window).off('resize',BUI.getWrapBehavior(_self,'handleWindowResize'));
+ $(window).off('resize',fn);
});
},
//处理window resize事件
View
Oops, something went wrong.
View
@@ -4940,13 +4940,15 @@ define('bui/component/uibase/align',['bui/ua'],function (require) {
},
__bindUI : function(){
var _self = this;
+
+ var fn = BUI.wrapBehavior(_self,'handleWindowResize');
_self.on('show',function(){
- $(window).on('resize',BUI.wrapBehavior(_self,'handleWindowResize'));
+ $(window).on('resize',fn);
});
_self.on('hide',function(){
- $(window).off('resize',BUI.getWrapBehavior(_self,'handleWindowResize'));
+ $(window).off('resize',fn);
});
},
//处理window resize事件
@@ -337,13 +337,15 @@ define('bui/component/uibase/align',['bui/ua'],function (require) {
},
__bindUI : function(){
var _self = this;
+
+ var fn = BUI.wrapBehavior(_self,'handleWindowResize');
_self.on('show',function(){
- $(window).on('resize',BUI.wrapBehavior(_self,'handleWindowResize'));
+ $(window).on('resize',fn);
});
_self.on('hide',function(){
- $(window).off('resize',BUI.getWrapBehavior(_self,'handleWindowResize'));
+ $(window).off('resize',fn);
});
},
//处理window resize事件
View
@@ -19,4 +19,9 @@
<script type="text/javascript" src="../src/overlay/dialog.js"></script>
<script type="text/javascript" src="specs/dialog-spec.js"></script>
+<script>
+ $(window).on('resize',function () {
+ console.log('resize');
+ })
+</script>
<?php include("./templates/footer.php"); ?>

0 comments on commit abf0d3b

Please sign in to comment.