UNPKG

grunt

Version:

A task-based command line build tool for JavaScript projects.

29 lines (23 loc) 566 B
/* * {%= name %} * {%= homepage %} * * Copyright (c) {%= template.today('yyyy') %} {%= author_name %} * Licensed under the {%= licenses.join(', ') %} license{%= licenses.length === 1 ? '' : 's' %}. */ (function($) { // Collection method. $.fn.awesome = function() { return this.each(function() { $(this).html('awesome'); }); }; // Static method. $.awesome = function() { return 'awesome'; }; // Custom selector. $.expr[':'].awesome = function(elem) { return elem.textContent.indexOf('awesome') >= 0; }; }(jQuery));