Sha256: 06c4d9227927bb58a891cbad9597e842b87df8196e7bfc073ff81d752668b5d5
Contents?: true
Size: 565 Bytes
Versions: 27
Compression:
Stored size: 565 Bytes
Contents
/** * @namespace WORKAREA.toggleElement */ WORKAREA.registerModule('toggleElement', (function () { 'use strict'; /** * @method * @name init * @memberof WORKAREA.toggleElement */ var toggle = function (event) { var target = $(event.target).data('toggleElement'); event.preventDefault(); $(target).toggleClass('hidden'); }, init = function ($scope) { $('[data-toggle-element]', $scope).on('click', toggle); }; return { init: init }; }()));
Version data entries
27 entries across 27 versions & 1 rubygems