fullscreen.js 993 B

123456789101112131415161718192021222324252627282930313233
  1. (function() {
  2. var Fullscreen, Selector,
  3. __extends = 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(_super) {
  7. __extends(Fullscreen, _super);
  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);