Commit 846e30cd authored by S Anand's avatar S Anand
Browse files

FIX

parent d5d196f8
Pipeline #77013 passed with stage
in 2 minutes and 13 seconds
......@@ -7,6 +7,7 @@ var container_options = {
selector: '.urlfilter',
src: 'src'
}
var event_namespace = '.urlfilter'
export function urlfilter(options) {
var $self = this
......@@ -16,8 +17,7 @@ export function urlfilter(options) {
var doc = $self[0].ownerDocument
var settings = $.extend({}, container_options, options || {}, this.dataset)
var default_remove = settings.remove || hasdata($self, 'remove')
var space = settings.selector === container_options.selector?'':' '
var events = settings.event.split(/\s+/).map(function(v) {return v + space + settings.selector }).join(' ')
var events = settings.event.split(/\s+/).map(function (v) { return v + event_namespace }).join(' ')
// options.location and options.history are used purely for testing
var loc = settings.location || (doc.defaultView || doc.parentWindow).location
var hist = settings.history || (doc.defaultView || doc.parentWindow).history
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment