Search

8/10/2012

//@ sourceURL

A simple example of //@ sourceURL eval naming

Using //@ sourceURL we can name eval's. This demo uses the client side Coffee Script compiler and will name the comiled code so it appears with a friendly name in your dev tools. Using the "Name your code" field you can give the eval'd code a any name. Check your scripts panel and you'll notice that the compiled CoffeeScript will have a name.

demo: http://dl.dropbox.com/u/2192156/blog/sourceURL/target-script.html

via: pmuellr: debugging concatenated JavaScript files

沒有留言: