Patch 51 #52

Merged
darylteo merged 4 commits from patch-51 into master 2016-01-05 01:15:11 -05:00
Showing only changes of commit e882b8639a - Show all commits

View File

@@ -1,3 +1,4 @@
var forEachEls = require("./lib/foreach-els.js")
var newUid = require("./lib/uniqueid.js")
@@ -5,6 +6,7 @@ var on = require("./lib/events/on.js")
// var off = require("./lib/events/on.js")
var trigger = require("./lib/events/trigger.js")
var Pjax = function(options) {
this.firstrun = true
@@ -118,7 +120,7 @@ Pjax.prototype = {
// execute scripts when DOM have been completely updated
this.options.selectors.forEach(function(selector) {
Pjax.forEachEls(document.querySelectorAll(selector), function(el) {
forEachEls(document.querySelectorAll(selector), function(el) {
Pjax.executeScripts(el)
})
})