Dropped window in favor of var to increase readability, usability and prevent IE8 from crashing.
parent
526b2f4042
commit
b51e08a3aa
|
@ -1,4 +1,4 @@
|
|||
window.H5P = window.H5P || {};
|
||||
var H5P = H5P || {};
|
||||
|
||||
//
|
||||
// Initialize H5P content
|
||||
|
@ -36,7 +36,7 @@ H5P.Coords = function(x, y, w, h) {
|
|||
this.w = 1;
|
||||
this.h = 1;
|
||||
|
||||
if (typeof(x) == 'object') {
|
||||
if (typeof(x) === 'object') {
|
||||
this.x = x.x;
|
||||
this.y = x.y;
|
||||
this.w = x.w;
|
||||
|
|
|
@ -6,5 +6,5 @@ return(!i||i!==r&&!b.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,a
|
|||
|
||||
// Snap this specific version of jQuery into H5P. jQuery.noConflict will
|
||||
// revert the globals to what they were before this file was loaded.
|
||||
window.H5P = window.H5P || {};
|
||||
var H5P = H5P || {};
|
||||
H5P.jQuery = jQuery.noConflict(true);
|
||||
|
|
Loading…
Reference in New Issue