« first day (1452 days earlier)      last day (2650 days later) » 

3:20 AM
```
//this works
window.addEventListener('resize', function(e){
var w = window.innerWidth;
var h = window.innerHeight;
resizeCanvas(w, h);
});

//this does not work
window.addEventListener('resize', function(e){
resizeCanvas(window.innerWidth, window.innerHeight);
});
```
 
1 message moved from JavaScript
 
 
10 hours later…
1:13 PM
handlebars: {
compile: {
options: {
// configure a namespace for your templates
namespace: 'morya.templates',

// convert file path into a function name
// in this example, I convert grab just the filename without the extension
processName: function(filePath) {
var pieces = filePath.split('/');
return pieces[pieces.length - 1].split('.')[0];
}
},
// output file: input files
files: {
'assets/js/compiled.js': 'assets/js/templates/*.hbs'
}
}
}
 
1 message moved from JavaScript
 

« first day (1452 days earlier)      last day (2650 days later) »