2017 © Pedro Peláez
 

component jquery-once

Act on jQuery elements only once.

image

robloach/jquery-once

Act on jQuery elements only once.

  • Friday, July 27, 2018
  • by RobLoach
  • Repository
  • 5 Watchers
  • 50 Stars
  • 126 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 19 Forks
  • 1 Open issues
  • 57 Versions
  • 3 % Grown

The README.md

jQuery Once NPM version

Testing NPM downloads, (*1)

Act on jQuery elements only once., (*2)

Filters out all elements that had the same filter applied on them before. It can be used to ensure that a function is only applied once to an element., (*3)

Install

Method Installation
npm npm install jquery-once --save
Composer composer require robloach/jquery-once
Bower bower install jquery-once
Component component install RobLoach/jquery-once
jsDelivr //cdn.jsdelivr.net/npm/jquery-once@2.3.0/jquery.once.min.js
cdnjs //cdnjs.cloudflare.com/ajax/libs/jquery-once/2.3.0/jquery.once.js

Usage

See the API documentation for more information on how to use jQuery Once., (*4)

``` javascript // The following will change the color of each paragraph to red, just once // for the "changecolor" key. $('p').once('changecolor').css('color', 'red');, (*5)

// .once() will return a set of elements that yet to have the once ID // associated with them. You can return to the original collection set by // using .end(). $('p') .once("changecolorblue") .css("color", "blue") .end() .css("color", "red");, (*6)

// To execute a function on the once set, you can use jQuery's each(). $('div.calendar').once().each(function() { // Since there is no once ID provided here, the key will be "once". }); ```, (*7)

Development

  1. Ensure you are using node >= 4:, (*8)

    node --version
    
  2. Install dependencies through npm:, (*9)

    npm install
    
  3. Check coding style standard, and automated testing:, (*10)

    npm test
    
  4. Build jquery.once.min.js with:, (*11)

    npm run build
    
  5. Update API documentation:, (*12)

    npm run docs
    
  6. Tag and publish the new versions to npm with Semantic Versioning:, (*13)

    git add -A
    git commit -m "2.3.0"
    git tag 2.3.0
    git push origin 2.3.0
    npm publish
    

Change Log

Discover the change history by heading on over to the CHANGELOG.md file., (*14)

License

Dual licensed under:, (*15)

Copyright © Rob Loach, (*16)

The Versions

27/07 2018

dev-greenkeeper/uglify-js-3.4.6

dev-greenkeeper/uglify-js-3.4.6 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

27/07 2018

dev-master

9999999-dev http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

27/07 2018

dev-greenkeeper/jsdom-pin-11.11.0

dev-greenkeeper/jsdom-pin-11.11.0 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

27/07 2018

dev-greenkeeper/jsdom-11.12.0

dev-greenkeeper/jsdom-11.12.0 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

20/06 2018

dev-greenkeeper/@types/jquery-3.3.4

dev-greenkeeper/@types/jquery-3.3.4 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

19/06 2018

dev-greenkeeper/@types/jquery-pin-3.3.2

dev-greenkeeper/@types/jquery-pin-3.3.2 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

19/06 2018

dev-greenkeeper/@types/jquery-3.3.3

dev-greenkeeper/@types/jquery-3.3.3 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

08/06 2018

dev-update

dev-update http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

01/06 2018

dev-greenkeeper/uglify-js-3.3.28

dev-greenkeeper/uglify-js-3.3.28 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

17/05 2018

dev-docs-update

dev-docs-update http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

07/05 2018

dev-node10

dev-node10 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

07/05 2018

dev-greenkeeper/update-to-node-10

dev-greenkeeper/update-to-node-10 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

30/04 2018

dev-greenkeeper/jsdom-11.10.0

dev-greenkeeper/jsdom-11.10.0 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

02/04 2018

dev-greenkeeper/uglify-js-3.3.18

dev-greenkeeper/uglify-js-3.3.18 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

01/04 2018

dev-greenkeeper/jsdom-11.7.0

dev-greenkeeper/jsdom-11.7.0 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

29/03 2018

2.2.1

2.2.1.0 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

10/03 2018

dev-greenkeeper/uglify-js-3.3.14

dev-greenkeeper/uglify-js-3.3.14 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

06/03 2018

dev-greenkeeper/mocha-5.0.2

dev-greenkeeper/mocha-5.0.2 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

04/03 2018

dev-greenkeeper/uglify-js-pin-3.3.12

dev-greenkeeper/uglify-js-pin-3.3.12 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

04/03 2018

dev-greenkeeper/uglify-js-3.3.13

dev-greenkeeper/uglify-js-3.3.13 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

14/02 2018

dev-greenkeeper/mocha-pin-5.0.0

dev-greenkeeper/mocha-pin-5.0.0 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

14/02 2018

dev-greenkeeper/mocha-5.0.1

dev-greenkeeper/mocha-5.0.1 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

14/01 2018

dev-greenkeeper/@types/jquery-3.2.18

dev-greenkeeper/@types/jquery-3.2.18 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

14/01 2018

dev-greenkeeper/uglify-js-3.3.7

dev-greenkeeper/uglify-js-3.3.7 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

13/01 2018

dev-greenkeeper/uglify-js-3.3.6

dev-greenkeeper/uglify-js-3.3.6 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

16/06 2017

2.2.0

2.2.0.0 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

16/06 2017

dev-update-jsdom

dev-update-jsdom http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

07/06 2017

dev-greenkeeper/initial

dev-greenkeeper/initial http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

17/03 2017

dev-travis

dev-travis http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

11/06 2016

2.1.2

2.1.2.0 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

31/08 2015

2.1.1

2.1.1.0 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

31/08 2015

2.1.0

2.1.0.0 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

05/06 2015

2.0.2

2.0.2.0 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

04/06 2015

dev-jsdelivr

dev-jsdelivr http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

04/06 2015

dev-cdnjs

dev-cdnjs http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

05/05 2015

2.0.1

2.0.1.0 http://github.com/robloach/jquery-once

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

21/01 2015

2.0.0

2.0.0.0

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

05/01 2015

2.0.0-beta.3

2.0.0.0-beta3

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

01/01 2015

2.0.0-beta.2

2.0.0.0-beta2

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

19/12 2014

2.0.0-beta.1

2.0.0.0-beta1

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

18/11 2014

dev-fix/homepage

dev-fix/homepage

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

04/11 2014

dev-coffeescript-nolitcoffee

dev-coffeescript-nolitcoffee

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

03/11 2014

dev-coffeescript

dev-coffeescript

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

16/10 2014

2.0.0-alpha.9

2.0.0.0-alpha9

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

09/10 2014

2.0.0-alpha.8

2.0.0.0-alpha8

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

07/10 2014

2.0.0-alpha.6

2.0.0.0-alpha6

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

06/10 2014

2.0.0-alpha.5

2.0.0.0-alpha5

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

05/10 2014

2.0.0-alpha.4

2.0.0.0-alpha4

Act on jQuery elements only once.

  Sources   Download

MIT GPL-2.0

The Requires

 

01/10 2014

2.0.0-alpha.3

2.0.0.0-alpha3

Filters out all elements that had the same filter applied on them before. It can be used to ensure that a function is only applied once to an element.

  Sources   Download

MIT GPL-2.0

The Requires

 

27/09 2014

2.0.0-alpha.2

2.0.0.0-alpha2

Filters out all elements that had the same filter applied on them before. It can be used to ensure that a function is only applied once to an element.

  Sources   Download

MIT GPL-2.0

The Requires

 

27/09 2014

2.0.0-alpha.1

2.0.0.0-alpha1

Filters out all elements that had the same filter applied on them before. It can be used to ensure that a function is only applied once to an element.

  Sources   Download

MIT GPL-2.0

The Requires

 

11/09 2013

1.2.6

1.2.6.0

Filters out all elements that had the same filter applied on them before. It can be used to ensure that a function is only applied once to an element.

  Sources   Download

MIT GPL-2.0

The Requires

 

31/08 2013

1.2.5

1.2.5.0

Filters out all elements that had the same filter applied on them before. It can be used to ensure that a function is only applied once to an element.

  Sources   Download

MIT GPL-2.0

The Requires

 

31/08 2013

1.2.4

1.2.4.0

Filters out all elements that had the same filter applied on them before. It can be used to ensure that a function is only applied once to an element.

  Sources   Download

MIT GPL-2.0

The Requires

 

13/06 2013

1.2.3

1.2.3.0

Filters out all elements that had the same filter applied on them before. It can be used to ensure that a function is only applied once to an element.

  Sources   Download

MIT GPL-2.0

The Requires

 

18/05 2013

1.2.1

1.2.1.0

Filters out all elements that had the same filter applied on them before. It can be used to ensure that a function is only applied once to an element.

  Sources   Download

MIT GPL-2.0

The Requires

 

05/04 2013

1.2.0

1.2.0.0

Filters out all elements that had the same filter applied on them before. It can be used to ensure that a function is only applied once to an element.

  Sources   Download

MIT GPL-2.0

The Requires