allow for stripping comments in doc panel (which implies hiding line numbers)

This commit is contained in:
rolux 2012-06-23 20:44:13 +02:00
commit a071d541de
3 changed files with 13 additions and 6 deletions

View file

@ -410,8 +410,8 @@ My.ExtendedBox = function(options, self) {
//@
/*
And finally, this is how everything gets parsed and displayed, in 25 lines of
code. Note that it would be more efficient to parse the source once
And finally, this is how everything gets parsed and displayed, in less than 30
lines of code. Note that it would be more efficient to parse the source once
```
var doc = Ox.doc(source);
```
@ -432,7 +432,8 @@ Ox.DocPanel({
expanded: true,
items: doc,
getModule: function() { return 'My'; },
path: path
path: path,
stripComments: true
});
```
but the thing we want to demonstrate here is that we can just pass files to
@ -453,7 +454,8 @@ Ox.load('UI', function() {
expanded: true,
files: [file],
getModule: function() { return 'My'; },
path: path
path: path,
stripComments: true
});
},
tabs: [