rwjblue / ember-native-dom-event-dispatcher

MIT License
25 stars 6 forks source link

Not getting loaded in Ember-2.15-beta #17

Open webark opened 7 years ago

webark commented 7 years ago

Creating a ticket over here as this is where the adjustment might have to be made, or at least some investigation work would need to be done.

see https://github.com/emberjs/ember.js/issues/15574 for reference.

webark commented 7 years ago

Here is a sample repo.

Here is the basic diff for expediency

diff --git a/app/initializers/test-delay.js b/app/initializers/test-delay.js
new file mode 100644
index 0000000..545928e
--- /dev/null
+++ b/app/initializers/test-delay.js
@@ -0,0 +1,13 @@
+import { begin, end } from "@ember/runloop"
+
+export function initialize() {
+  begin();
+
+  setTimeout(function() {
+    end();
+  });
+}
+
+export default {
+  initialize
+};
diff --git a/ember-cli-build.js b/ember-cli-build.js
index 9a757ff..668f6ab 100644
--- a/ember-cli-build.js
+++ b/ember-cli-build.js
@@ -5,6 +5,9 @@ const EmberApp = require('ember-cli/lib/broccoli/ember-app');

 module.exports = function(defaults) {
   let app = new EmberApp(defaults, {
+    vendorFiles: {
+      'jquery.js': null
+    },
     // Add options here
   });

diff --git a/package.json b/package.json
index e93e1aa..142190a 100644
--- a/package.json
+++ b/package.json
@@ -32,6 +32,7 @@
     "ember-data": "~2.15.0-beta.2",
     "ember-export-application-global": "^2.0.0",
     "ember-load-initializers": "^1.0.0",
+    "ember-native-dom-event-dispatcher": "^0.6.3",
     "ember-resolver": "^4.0.0",
     "ember-source": "~2.15.0-beta.2",
     "ember-welcome-page": "^3.0.0",
webark commented 7 years ago

@rwjblue any thoughts?

webark commented 7 years ago

@rwjblue any ideas why this event_dispatcher isn't getting loaded in anything after 2.15?