开发者

Date.js getWeek() stopped working after implementing Extjs

I had an existing site that was using the date.js library and it stopped working after I implemented a Extjs Border Layout ( http://dev.sencha.com/deploy/dev/examples/layout-browser/layout-browser.html ) into my site.

So the line in question is this one:

var weeknum = (dates[y][m][d]).getWeek();

Firebug tells me that dates[y][m][d].getWeek is not a function.

Now from my understanding, Extjs extends the javascript date object which is the probable cause for this issue. I tried changing the line of code above to use the Extj开发者_如何学编程s getWeekOfYear() but I still get the same error.

Any ideas on how I can keep my existing getWeek() code and still be able to use Extjs?

Thanks!

EDIT: Did a

console.log((dates[y][m][d]));

Date.js getWeek() stopped working after implementing Extjs

Edit2:

Date.js getWeek() stopped working after implementing Extjs


I ended up removing all my references to the Date.js file on any page that was going to us Ext. It wasn't as complicated as I thought it would be. Not ideal, but at least it's working now.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜