No Description

fullscreen.js 991B

123456789101112131415161718192021222324252627282930313233
  1. (function() {
  2. var Fullscreen, Selector,
  3. extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  4. hasProp = {}.hasOwnProperty;
  5. Selector = require('../selector');
  6. Fullscreen = (function(superClass) {
  7. extend(Fullscreen, superClass);
  8. function Fullscreen() {
  9. return Fullscreen.__super__.constructor.apply(this, arguments);
  10. }
  11. Fullscreen.names = [':fullscreen'];
  12. Fullscreen.prototype.prefixed = function(prefix) {
  13. if ('-webkit-' === prefix) {
  14. return ':-webkit-full-screen';
  15. } else if ('-moz-' === prefix) {
  16. return ':-moz-full-screen';
  17. } else {
  18. return ":" + prefix + "fullscreen";
  19. }
  20. };
  21. return Fullscreen;
  22. })(Selector);
  23. module.exports = Fullscreen;
  24. }).call(this);