~caneypuggies/reformedchurcheslocator/couchapp-backbone

« back to all changes in this revision

Viewing changes to _attachments/js/vendor/jquery.xpath/src/jquery.xpath.js

  • Committer: Tim Black
  • Date: 2013-09-16 22:50:16 UTC
  • Revision ID: tim@alwaysreformed.com-20130916225016-zk8jiba25z33ew7h
Versioned Bower vendor directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * jQuery XPath plugin (with full XPath 2.0 language support)
 
3
 *
 
4
 * Copyright (c) 2013 Sergey Ilinsky
 
5
 * Dual licensed under the MIT and GPL licenses.
 
6
 *
 
7
 *
 
8
 */
 
9
 
 
10
// Source code loader
 
11
(function() {
 
12
        // Get base folder
 
13
        var scripts     = document.getElementsByTagName("script"),
 
14
                self    = scripts[scripts.length-1],
 
15
                base    = self.src.replace(/\/?[^\/]+$/, '/');
 
16
        // Remove self
 
17
        self.parentNode.removeChild(self);
 
18
        // Include loader
 
19
        document.write('<script type="text/javascript" src="' + base + '../res/assemble.js?path=' + base + '"></script>');
 
20
})();