オブジェクトとそのプロパティを聞いて、左右のナビゲーションテキストを非表示にしようとしています。
実例: http: //jsfiddle.net/ylokesh/9EyEu/29/
しかし、次のエラーが発生します "Uncaught TypeError:Cannot call method'hide' of undefined"
if(!scroller) { var scroller = {}; }
scroller = {
next : "#leftControl",
prev : "#rightControl",
videos : {
hideButtons : function() {
var obj = this;
obj.next.hide();
obj.prev.hide();
},
init : function() {
var obj = this;
obj.hideButtons();
}
},
init : function() {
var obj = this;
obj.videos.init();
}
}
scroller.init();