Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ang2-phaser

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ang2-phaser - npm Package Compare versions

Comparing version 1.1.3 to 1.1.5

0

bower.json

@@ -0,0 +0,0 @@ {

42

ng2-phaser/phaser.directive.js

@@ -33,37 +33,9 @@ "use strict";

}
for (var i = 0; i < allScripts.length; i++) {
var str = allScripts[i].src;
if (str.indexOf(t.settings.file) >= 0) {
alreadyLoaded = true;
}
}
if (alreadyLoaded) {
var scriptLoadedTest = function () {
setTimeout(function () {
try {
var test = new Phaser.Game();
clearInterval(this);
}
catch (err) { }
finally {
if (test != undefined) {
t.initPhaser();
}
else {
scriptLoadedTest();
}
}
}, 1);
};
var intv = scriptLoadedTest();
}
else {
var js = document.createElement("script");
js.type = "text/javascript";
js.src = t.settings.file;
document.body.appendChild(js);
js.onload = function () {
t.initPhaser();
};
}
var js = document.createElement("script");
js.type = "text/javascript";
js.src = t.settings.file;
document.body.appendChild(js);
js.onload = function () {
t.phaser.emit({ firstLoad: true, container: t.selfRef });
};
};

@@ -70,0 +42,0 @@ //--------------

@@ -39,40 +39,10 @@ // core

for(var i = 0; i < allScripts.length; i++){
var str = allScripts[i].src;
if (str.indexOf(t.settings.file) >= 0){
alreadyLoaded = true;
}
}
var js = document.createElement("script");
js.type = "text/javascript";
js.src = t.settings.file;
document.body.appendChild(js);
js.onload = function(){
t.phaser.emit({firstLoad: true, container: t.selfRef})
}
if(alreadyLoaded){
var scriptLoadedTest = function(){
setTimeout(function(){
try {
var test = new Phaser.Game();
clearInterval(this)
}
catch(err) {}
finally{
if(test != undefined){
t.initPhaser();
}
else{
scriptLoadedTest()
}
}
}, 1)
}
var intv = scriptLoadedTest();
}
else{
var js = document.createElement("script");
js.type = "text/javascript";
js.src = t.settings.file;
document.body.appendChild(js);
js.onload = function(){
t.initPhaser()
}
}
}

@@ -79,0 +49,0 @@ //--------------

@@ -0,0 +0,0 @@ "use strict";

2

package.json
{
"name": "ang2-phaser",
"version": "1.1.3",
"version": "1.1.5",
"description": "A Phaser module built for Angular 2 components.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -0,0 +0,0 @@ # ang2-phaser

@@ -0,0 +0,0 @@ {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc