This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
forked from cferdinandi/gulp-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd13dae
commit 6122b53
Showing
6 changed files
with
11 additions
and
807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
/*! gulp-boilerplate v5.0.0 | (c) 2017 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/Plugin */ | ||
!(function(t,e){"function"==typeof define&&define.amd?define([],e(t)):"object"==typeof exports?module.exports=e(t):t.myPlugin=e(t)})("undefined"!=typeof global?global:this.window||this.global,(function(t){"use strict";var e,n,r={},o="querySelector"in document&&"addEventListener"in t,i={someVar:123,initClass:"js-myplugin",callback:function(){}},s=function(){var t={},e=!1,n=0,r=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],n++);for(;n<r;n++){var o=arguments[n];!(function(n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e&&"[object Object]"===Object.prototype.toString.call(n[r])?t[r]=s(!0,t[r],n[r]):t[r]=n[r])})(o)}return t},c=function(t,e){var n,r,o=e.charAt(0),i="classList"in document.documentElement;for("["===o&&(e=e.substr(1,e.length-2),n=e.split("="),n.length>1&&(r=!0,n[1]=n[1].replace(/"/g,"").replace(/'/g,"")));t&&t!==document;t=t.parentNode){if("."===o)if(i){if(t.classList.contains(e.substr(1)))return t}else if(new RegExp("(^|\\s)"+e.substr(1)+"(\\s|$)").test(t.className))return t;if("#"===o&&t.id===e.substr(1))return t;if("["===o&&t.hasAttribute(n[0])){if(!r)return t;if(t.getAttribute(n[0])===n[1])return t}if(t.tagName.toLowerCase()===e)return t}return null},l=function(t){var e=t.target;c(e,"[data-some-selector]")};return r.destroy=function(){e&&(document.documentElement.classList.remove(e.initClass),document.removeEventListener("click",l,!1),e=null,n=null)},r.init=function(t){o&&(r.destroy(),e=s(i,t||{}),document.documentElement.classList.add(e.initClass),document.addEventListener("click",l,!1))},r})); |
Oops, something went wrong.