one has to change the required version number of Java to 1.*
Open
/Applications/PhpStorm.app/Contents/Info.plist
<key>JVMVersion</key>
<string>1.*</string>
| // put tis at the end of the body | |
| function loadDeferred( ) { | |
| var s = document.createElement( 'script' ); | |
| s.src = 'defer.js'; // concat all scripts which can be loaded deferred (listeners etc) | |
| document.body.appendChild( s ); | |
| } | |
| if ( window.addEventListener ) { | |
| window.addEventListener( "load", loadDeferred, false ); | |
| } |
| (function () { | |
| function PreloaderService( $http, $window, $q, ENV ) { | |
| var PreloaderService = {}; | |
| PreloaderService.imageUrls = []; | |
| PreloaderService.addImage = function ( imageUrl ) { | |
| PreloaderService.imageUrls.push( imageUrl ) | |
| }; |
| (function( window ) { | |
| if ( window.console ) { | |
| return; | |
| } | |
| window.console = (function() { | |
| var methods = 'assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,table,time,timeEnd,timeStamp,trace,warn'.split(','), | |
| console = {}, |
| { | |
| "in_process_packages": | |
| [ | |
| ], | |
| "installed_packages": | |
| [ | |
| "Alternate VIM Navigation", | |
| "AutoFileName", | |
| "Babel", | |
| "Better CoffeeScript", |
| Array.prototype.slice.call($x('//*[@id="mw-content-text"]/table/tbody/tr[*]/td[3]/a')).forEach(function(e,i) {console.log(e.href);}) |
| (function () { | |
| /** | |
| * Deferred ItemsService | |
| */ | |
| function ItemsService($log, $http, $window, ENV) { | |
| var ItemsService = {}; | |
| ItemsService.items = []; |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>xhr donwload</title> | |
| </head> | |
| <body> | |
| <script> | |
| var uri = 'https://domain.com/video.mp4'; | |
| var xhr = new XMLHttpRequest(); |
one has to change the required version number of Java to 1.*
Open
/Applications/PhpStorm.app/Contents/Info.plist
<key>JVMVersion</key>
<string>1.*</string>
| angular.module('app') | |
| .run(function($rootScope, $location, $routeParams, $window){ | |
| $rootScope.$on('$routeChangeSuccess', function() { | |
| var params = []; | |
| angular.forEach($routeParams, function(value, key){ | |
| params.push(key + '=' + value); | |
| }); | |
| var locationPath = $location.path() + '?' + params.join('&'); | |
| $window._gaq.push(['_trackPageView', locationPath]); | |
| }); |