Add default switches to Pjax.switches (#92)
Fixes #68 and reverts #74
This commit was merged in pull request #92.
This commit is contained in:
committed by
Maxime Thirouin
parent
352e7114b6
commit
75eddfcab6
4
index.js
4
index.js
@@ -9,6 +9,8 @@ var on = require("./lib/events/on.js")
|
||||
// var off = require("./lib/events/on.js")
|
||||
var trigger = require("./lib/events/trigger.js")
|
||||
|
||||
var defaultSwitches = require("./lib/switches")
|
||||
|
||||
|
||||
var Pjax = function(options) {
|
||||
this.firstrun = true
|
||||
@@ -42,6 +44,8 @@ var Pjax = function(options) {
|
||||
}.bind(this))
|
||||
}
|
||||
|
||||
Pjax.switches = defaultSwitches
|
||||
|
||||
Pjax.prototype = {
|
||||
log: require("./lib/proto/log.js"),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user