/**
 * Copyright (C) 2017 Orbeon, Inc.
 *
 * This program is free software; you can redistribute it and/or modify it under the terms of the
 * GNU Lesser General Public License as published by the Free Software Foundation; either version
 * 2.1 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
 */
package org.orbeon.xforms

import org.orbeon.xforms.InitSupport.setupGlobalClassesIfNeeded

// Scala.js starting point for XForms
object XFormsApp extends App {

  // NOTE: `object`s which have `@JSExportTopLevel` do not need to be explicitly called here.
  def onOrbeonApiLoaded(): Unit = {
    Upload
    org.orbeon.xbl.Date
  }

  def onPageContainsFormsMarkup(): Unit = {
    setupGlobalClassesIfNeeded()
    StateHandling.initializeHashChangeListener()
    InitSupport.pageContainsFormsMarkup()
  }
}

/**
 * Copyright (C) 2017 Orbeon, Inc.
 *
 * This program is free software; you can redistribute it and/or modify it under the terms of the
 * GNU Lesser General Public License as published by the Free Software Foundation; either version
 * 2.1 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
 */
package org.orbeon.xforms

import org.orbeon.xbl
import org.orbeon.xforms.InitSupport.setupGlobalClassesIfNeeded
import org.orbeon.xforms.facade.Init

// Scala.js starting point for XForms
object XFormsApp extends App {

  // NOTE: `object`s which have `@JSExportTopLevel` do not need to be explicitly called here.
  def onOrbeonApiLoaded(): Unit = {
    Upload
    xbl.Date
  }

  def onPageContainsFormsMarkup(): Unit = {
    setupGlobalClassesIfNeeded()
    StateHandling.initializeHashChangeListener()
    InitSupport.pageContainsFormsMarkup()
  }
}

--- 
+++ 
@@ -13,9 +13,7 @@
  */
 package org.orbeon.xforms
 
-import org.orbeon.xbl
 import org.orbeon.xforms.InitSupport.setupGlobalClassesIfNeeded
-import org.orbeon.xforms.facade.Init
 
 // Scala.js starting point for XForms
 object XFormsApp extends App {
@@ -23,7 +21,7 @@
   // NOTE: `object`s which have `@JSExportTopLevel` do not need to be explicitly called here.
   def onOrbeonApiLoaded(): Unit = {
     Upload
-    xbl.Date
+    org.orbeon.xbl.Date
   }
 
   def onPageContainsFormsMarkup(): Unit = {
Fix compilation due to import shadowing