2013-06-25 16:23:09 +04:00
|
|
|
/*globals window, $, _, Backbone */
|
|
|
|
(function () {
|
2013-05-31 09:58:20 +04:00
|
|
|
"use strict";
|
|
|
|
|
2013-06-04 16:38:45 +04:00
|
|
|
var Ghost = {
|
|
|
|
Layout : {},
|
|
|
|
Views : {},
|
|
|
|
Collections : {},
|
|
|
|
Models : {},
|
|
|
|
|
|
|
|
settings: {
|
|
|
|
apiRoot: '/api/v0.1'
|
|
|
|
},
|
|
|
|
|
|
|
|
// This is a helper object to denote legacy things in the
|
|
|
|
// middle of being transitioned.
|
|
|
|
temporary: {},
|
|
|
|
|
|
|
|
currentView: null,
|
|
|
|
router: null
|
|
|
|
};
|
|
|
|
|
2013-06-08 06:16:28 +04:00
|
|
|
Ghost.init = function () {
|
|
|
|
Ghost.router = new Ghost.Router();
|
|
|
|
Backbone.history.start({
|
|
|
|
pushState: true,
|
|
|
|
hashChange: false,
|
|
|
|
root: '/ghost'
|
|
|
|
});
|
|
|
|
};
|
2013-06-02 03:45:02 +04:00
|
|
|
|
2013-05-31 09:58:20 +04:00
|
|
|
window.Ghost = Ghost;
|
|
|
|
|
2013-06-25 16:23:09 +04:00
|
|
|
}());
|