Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix #39

Merged
merged 2 commits into from
Jul 24, 2013
Merged

bugfix #39

merged 2 commits into from
Jul 24, 2013

Conversation

lianqin7
Copy link
Member

  1. 解决几个 全局变量 html (忘了写var导致)
  2. 在 日期表的 refresh 方法里,选择器有问题,每次选择都会 refresh 下UI

lepture added a commit that referenced this pull request Jul 24, 2013
@lepture lepture merged commit 471067a into aralejs:master Jul 24, 2013
@@ -59,8 +59,7 @@ define(function(require, exports, module) {

refresh: function() {
var focus = this.get('focus').year();
var column = this.element.find('[data-role=month-column]');
var year = column.data('year');
var year = this.element.data('year');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?????

you introduced a bug

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lepture

MonthColumn 的实例的 element 本身就是 [data-role=month-column]

所以原来 this.element.find('[data-role=month-column]') 找到的 element 是空的,

所以 year 也是空的,底下的判断永远为 false

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

o....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants