Dropped window in favor of var to increase readability, usability and prevent IE8 from crashing.

namespaces
Frode Petterson 2013-04-02 17:05:16 +02:00
parent 526b2f4042
commit b51e08a3aa
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
window.H5P = window.H5P || {}; var H5P = H5P || {};
// //
// Initialize H5P content // Initialize H5P content
@ -36,7 +36,7 @@ H5P.Coords = function(x, y, w, h) {
this.w = 1; this.w = 1;
this.h = 1; this.h = 1;
if (typeof(x) == 'object') { if (typeof(x) === 'object') {
this.x = x.x; this.x = x.x;
this.y = x.y; this.y = x.y;
this.w = x.w; this.w = x.w;

2
js/jquery.js vendored
View File

@ -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 // Snap this specific version of jQuery into H5P. jQuery.noConflict will
// revert the globals to what they were before this file was loaded. // revert the globals to what they were before this file was loaded.
window.H5P = window.H5P || {}; var H5P = H5P || {};
H5P.jQuery = jQuery.noConflict(true); H5P.jQuery = jQuery.noConflict(true);