Requires

Provides

Class.Occlude.js

Prevents a class from being applied to a DOM element twice.

License:
MIT-style license.
Authors:
Aaron Newton
  1. 26
  2. 27
  3. 28
  4. 29
  5. 30
  6. 31
  7. 32
  8. 33
  9. 34
  10. 35
  11. 36
  12. 37
  13. 38
  14. 39
Class.Occlude = new Class({ occlude: function(property, element){ element = document.id(element || this.element); var instance = element.retrieve(property || this.property); if (instance && this.occluded != null) return this.occluded = instance; this.occluded = false; element.store(property || this.property, this); return this.occluded; } });