summaryrefslogtreecommitdiff
path: root/dependencies.js
diff options
context:
space:
mode:
authorjiteshjha2016-06-30 16:22:23 +0530
committerjiteshjha2016-06-30 16:22:23 +0530
commit4a1a77706b7c7aafb9634917e564b5ccdc4da732 (patch)
treee7b5e62bbb9179900ac52f950d7c470f8da803e1 /dependencies.js
parent937dcaece3da2a453c671e6bb6e6aa16af98ca54 (diff)
downloadxcos-on-web-4a1a77706b7c7aafb9634917e564b5ccdc4da732.tar.gz
xcos-on-web-4a1a77706b7c7aafb9634917e564b5ccdc4da732.tar.bz2
xcos-on-web-4a1a77706b7c7aafb9634917e564b5ccdc4da732.zip
Code refactoring part 3
Diffstat (limited to 'dependencies.js')
-rw-r--r--dependencies.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/dependencies.js b/dependencies.js
index 028a8e5..5edd328 100644
--- a/dependencies.js
+++ b/dependencies.js
@@ -16,10 +16,10 @@ $.ajax({
success: function (data) {
/*
- * data will have the required filenames in the mentioned folder
+ * @Parameter: data will have the required filenames in the mentioned folder
* For each url, add the script to the body div element with getScript function
*/
- for (var i = 0, length = data.length; i < length; ++i) {
+ for (i in data) {
$.getScript(data[i]);
}
}