/** * Returns the default implementation of the AnimationScheduler API. */ public static AnimationScheduler get() { if (instance == null) { AnimationSupportDetector supportDetector = GWT.create(AnimationSupportDetector.class); instance = (supportDetector != null && supportDetector.isNativelySupported()) ? new AnimationSchedulerImplStandard() : new AnimationSchedulerImplTimer(); } return instance; }
/** * Returns the default implementation of the AnimationScheduler API. */ public static AnimationScheduler get() { if (instance == null) { AnimationSupportDetector supportDetector = GWT.create(AnimationSupportDetector.class); instance = (supportDetector != null && supportDetector.isNativelySupported()) ? new AnimationSchedulerImplStandard() : new AnimationSchedulerImplTimer(); } return instance; }
/** * Returns the default implementation of the AnimationScheduler API. */ public static AnimationScheduler get() { if (instance == null) { AnimationSupportDetector supportDetector = GWT.create(AnimationSupportDetector.class); instance = (supportDetector != null && supportDetector.isNativelySupported()) ? new AnimationSchedulerImplStandard() : new AnimationSchedulerImplTimer(); } return instance; }