mavensmate
Version:
Core APIs that drive MavensMate IDEs for Salesforce1/Force.com
1 lines • 472 B
JavaScript
if("undefined"==typeof jQuery.aljs)throw new Error("Please include the ALJS initializer file");!function(e){e.fn.pill=function(i){e.extend({assetsLocation:e.aljs.assetsLocation},i);if(1===this.length)return this.on("click",'[data-aljs-dismiss="pill"]',function(i){var n=e(this).closest(".slds-pill");n.length>0&&(n.trigger("dismissed.aljs.pill"),n.remove())});throw new Error("This plugin can only be run with a selector targeting one container (e.g., 'body')")}}(jQuery);