Cleanup & travis (should break)

This commit is contained in:
Maxime Thirouin committed 2014-10-14 11:42:36 +02:00
1 parent 332cd4e876
commit 3bc67f245c
16 files changed
+104 -101

No files matched your search

+4 -6
View File
@@ -54,23 +54,21 @@ var linkAction = function(el, event) {
}
module.exports = function(el) {
var instance = this
var that = this
on(el, "click", function(event) {
linkAction.call(instance, el, event)
linkAction.call(that, el, event)
})
on(el, "keyup", function(event) {
// Don’t break browser special behavior on links (like page in new window)
if (event.which > 1 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) {
el.setAttribute(attrKey, "modifier")
return
}
if(event.keyCode == 13) {
linkAction.call(instance, el, event)
if (event.keyCode == 13) {
linkAction.call(that, el, event)
}
}.bind(this))
}
+1 -1
View File
@@ -3,5 +3,5 @@ var forEachEls = require("../foreach-els")
var parseElement = require("../parse-element")
module.exports = function(el) {
forEachEls(this.getElements(el), parseElement }, this)
forEachEls(this.getElements(el), parseElement, this)
}