Requires

Provides

Container.js

Makes widget use container - wrapper around content setting

License:
Public domain (http://unlicense.org).
Authors:
Yaroslaff Fedin
  1. 23
  2. 24
  3. 25
  4. 26
  5. 27
  6. 28
  7. 29
  8. 30
  9. 31
  10. 32
  11. 33
  12. 34
  13. 35
  14. 36
  15. 37
  16. 38
  17. 39
  18. 40
  19. 41
  20. 42
  21. 43
  22. 44
  23. 45
  24. 46
  25. 47
  26. 48
  27. 49
  28. 50
  29. 51
  30. 52
  31. 53
LSD.Module.Container = new Class({ options: { container: false, proxies: { container: { container: function() { return $(this.getContainer()) //creates container, once condition is true }, condition: function() { //turned off by default return false }, priority: -1, //lowest priority rewrite: false //does not rewrite parent } } }, setContent: function(item) { if (item.title) item = item.title; return this.getContainer().set.apply(this.container, arguments); }, getContainer: Macro.getter('container', function() { return new Moo.Container(this, this.options.container); }), getWrapper: function() { return this.getContainer().toElement() } });