Skip to content

Commit

Permalink
JQueryMigrateResourceReference, minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
sbriquet committed May 21, 2017
1 parent 748f5a2 commit c54a9d5
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.googlecode.wicket.jquery.core.resource;

import java.util.Arrays;
import java.util.List;

import org.apache.wicket.markup.head.HeaderItem;
import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import org.apache.wicket.request.resource.ResourceReference;
import org.apache.wicket.resource.DynamicJQueryResourceReference;
import org.apache.wicket.util.lang.Generics;

/**
* Provides the {@link ResourceReference} for the {@code jquery-migrate-3.0.0.js} javascript library (CDN).<br>
Expand Down Expand Up @@ -44,14 +44,17 @@ private JQueryMigrateResourceReference()
*
* @return the single instance of the resource reference
*/
public static JQueryUrlResourceReference get()
public static JQueryMigrateResourceReference get()
{
return INSTANCE;
}

@Override
public List<HeaderItem> getDependencies()
{
return Arrays.asList(JavaScriptHeaderItem.forReference(DynamicJQueryResourceReference.getV3()));
List<HeaderItem> dependencies = Generics.newArrayList();
dependencies.add(JavaScriptHeaderItem.forReference(DynamicJQueryResourceReference.getV3()));

return dependencies;
}
}

0 comments on commit c54a9d5

Please sign in to comment.