Skip to content

Commit

Permalink
Removed network dependency for jquery. Now it is embedded.
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Oct 27, 2015
1 parent a3ef891 commit f230570
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CN1CSSCompiler/src/com/codename1/ui/css/ResourcesMutator.java
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ public void finishedCaptureScreenshotsCallback() {
private ChangeListener<Worker.State> changeListener;
public void createScreenshots(WebView web, String html, String baseURL) {
String captureSrc = this.getClass().getResource("capture.js").toExternalForm();
final String modifiedHtml = html.replace("</body>", "<script src=\"https://code.jquery.com/jquery-2.1.4.min.js\">"
+ "</script><script src=\""+captureSrc+"\"></script></body>");
final String modifiedHtml = html.replace("</body>", /*"<script src=\"https://code.jquery.com/jquery-2.1.4.min.js\">"
+ */"</script><script src=\""+captureSrc+"\"></script></body>");
this.web = web;
screenshotsComplete = false;
Platform.runLater(() -> {
Expand Down
5 changes: 5 additions & 0 deletions CN1CSSCompiler/src/com/codename1/ui/css/capture.js

Large diffs are not rendered by default.

Binary file removed NowUIKit/src/nowui.css.res
Binary file not shown.
Binary file modified cn1-css-demo/lib/cn1css-ant-task.jar
Binary file not shown.

0 comments on commit f230570

Please sign in to comment.