Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions analyzer2/Reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,34 @@ enyo.kind({
});
},
fileLoaded: function(inFile, inCode, xhr) {
var code = inCode;
var comment = "";

if(inFile.path.search("onyx") != 1 || inFile.path.search("layout") != 1){
inCode = "";
for (var l = 0; l <= code.length; l++ ){
if(code.charAt(l) === "/" && code.charAt(l+1) === "*"){
for (l ; l <= code.length; l++ ){
comment = comment + code.charAt(l); // comment stirng built here
if(code.charAt(l) === "*" && code.charAt(l+1) === "/"){ // stop strip here if we find */
comment = comment + code.charAt(l) + code.charAt( l+ 1); // add the last two char of the comment
l++;

if (comment.search("@lends") != -1){
comment = comment + "/n"; // add a new line to end of comment here
}else{
inCode = inCode + comment;
comment = "";
}
break;
}
}
}else{
inCode = inCode + code.charAt(l);
}
}
}

if (xhr.status >= 200 && xhr.status < 300) {
this.addFile(inFile, inCode);
}
Expand Down
107 changes: 107 additions & 0 deletions project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"id": "com.examples.apps.myapp",
"name": "extra",
"version": "0.0.1",
"title": "Example: My Application",
"description": "My application description...",
"author": {
"name": "An Example Company",
"href": "http://www.example.com"
},
"providers": {
"phonegap": {
"enabled": false,
"autoGenerateXML": true,
"minification": true,
"features": {
"battery": false,
"camera": false,
"contact": false,
"file": false,
"geolocation": false,
"media": false,
"network": false,
"notification": false,
"device": false
},
"preferences": {
"phonegap-version": "3.1.0",
"orientation": "both",
"target-device": "universal",
"fullscreen": "false",
"android-installLocation": "internalOnly",
"android-minSdkVersion": "7",
"android-targetSdkVersion": "None",
"android-maxSdkVersion": "None",
"android-windowSoftInputMode": "stateVisible",
"splash-screen-duration": "5000",
"load-url-timeout": "20000",
"webviewbounce": "true",
"prerendered-icon": "false",
"ios-statusbarstyle": "black-opaque",
"detect-data-types": "true",
"exit-on-suspend": "false",
"show-splash-screen-spinner": "false",
"auto-hide-splash-screen": "true",
"disable-cursor": "false"
},
"icon": {
"sharedConfiguration": {
"src": "",
"role": "default"
},
"android": {
"src": "",
"density": ""
},
"ios": {
"src": "",
"height": "",
"width": ""
},
"winphone": {
"src": ""
},
"blackberry": {
"src": ""
},
"webos": {
"src": ""
}
},
"splashScreen": {
"sharedConfiguration": {
"src": "",
"role": "default"
},
"android": {
"src": "",
"density": ""
},
"ios": {
"src": "",
"height": "",
"width": ""
},
"winphone": {
"src": ""
},
"blackberry": {
"src": ""
},
"webos": {
"src": ""
}
},
"plugins": {},
"access": {
"origin": ""
},
"targets": {},
"appId": ""
}
},
"preview": {
"top_file": "/debug.html"
}
}