//@ 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
沒有留言:
張貼留言