diff options
author | jiteshjha | 2016-06-30 16:22:23 +0530 |
---|---|---|
committer | jiteshjha | 2016-06-30 16:22:23 +0530 |
commit | 4a1a77706b7c7aafb9634917e564b5ccdc4da732 (patch) | |
tree | e7b5e62bbb9179900ac52f950d7c470f8da803e1 /dependencies.js | |
parent | 937dcaece3da2a453c671e6bb6e6aa16af98ca54 (diff) | |
download | xcos-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.js | 4 |
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]); } } |