;
(function() {
// 簡化 backbone 程序
//
if (typeof _ !== 'function' && typeof Backbone !== 'object') {
return;
} else {
_.mixin({
// Backbone.view.extend()
bbv: function(option) {
var bb = new BackboneExtend();
var view = bb.view(option);
return view;
}
});
_win_included = true;
}
/* ====================================================================== */
function BackboneExtend() {};
(function() {
this.view = function(option) {
var View_class = Backbone.View.extend(option);
var view = new View_class();
// view._class = View_class; view.constructor 可取得
return view;
}
}).call(BackboneExtend.prototype);
/* ====================================================================== */
})();