"use strict";

// Bind event listeners to target.
export function on (target, eventName, listener, capture = false) {
  return target.addEventListener(eventName, listener, capture);
}

// Unbind event listeners
export function off (target, eventName, listener, capture = false) {
  target.removeEventListener(eventName, listener, capture);
}

// "No operation" function.
export function noop () {}

export function fullscreenElement () {
  return document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement;
}

export function fullscreenEnabled () {
  return document.fullscreenEnabled || document.mozFullScreenEnabled || document.webkitFullscreenEnabled;
}

// Request fullscreen for given element.
export function enterFullscreen (element)
{
  if(element.requestFullscreen) {
    element.requestFullscreen();
  } else if(element.mozRequestFullScreen) {
    element.mozRequestFullScreen();
  } else if(element.webkitRequestFullscreen) {
    element.webkitRequestFullscreen();
  } else if(element.msRequestFullscreen) {
    element.msRequestFullscreen();
  }
}

// Exit fullscreen
export function exitFullscreen ()
{
  if(document.exitFullscreen) {
    document.exitFullscreen();
  } else if(document.mozCancelFullScreen) {
    document.mozCancelFullScreen();
  } else if(document.webkitExitFullscreen) {
    document.webkitExitFullscreen();
  } else if(document.msExitFullscreen) {
    document.msExitFullscreen();
  }
}

@@ -67,35 +67,22 @@
 on (
-target
+el
 , event
-Name, listener
+s, cb
 , ca
@@ -104,21 +104,58 @@
 %7B%0A  
-return target
+events.split(' ').map(event =%3E %7B%0A    if (event) el
 .add
@@ -169,38 +169,28 @@
 stener(event
-Name, listener
+, cb
 , capture);%0A
@@ -185,24 +185,30 @@
 , capture);%0A
+  %7D);%0A
 %7D%0A%0A// Unbind
@@ -249,35 +249,22 @@
 ff (
-target
+el
 , event
-Name, listener
+s, cb
 , ca
@@ -282,22 +282,66 @@
 se) %7B%0A  
-target
+events.split(' ').map(event =%3E %7B%0A    if (event) el
 .removeE
@@ -362,22 +362,12 @@
 vent
-Name, listener
+, cb
 , ca
@@ -374,16 +374,22 @@
 pture);%0A
+  %7D);%0A
 %7D%0A%0A// %22N
@@ -508,32 +508,36 @@
 screenElement %7C%7C
+%0A   
  document.mozFul
@@ -553,16 +553,20 @@
 ement %7C%7C
+%0A   
  documen
@@ -664,32 +664,36 @@
 screenEnabled %7C%7C
+%0A   
  document.mozFul
@@ -709,16 +709,20 @@
 abled %7C%7C
+%0A   
  documen

Add support to bind to multiple events in one call.