Unreviewed build fix.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Feb 2015 09:54:49 +0000 (09:54 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Feb 2015 09:54:49 +0000 (09:54 +0000)
* public/v2/app.js:
(App.IndexController.gridChanged): Use store.createRecord to create a custom dashboard as required by Ember.js

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179686 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/public/v2/app.js

index edec13c..da440ec 100644 (file)
@@ -1,3 +1,10 @@
+2015-02-05  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Unreviewed build fix.
+
+        * public/v2/app.js:
+        (App.IndexController.gridChanged): Use store.createRecord to create a custom dashboard as required by Ember.js
+
 2015-02-04  Ryosuke Niwa  <rniwa@webkit.org>
 
         New perf dashboard doesn't preserve the number of days when clicking on a dashboard chart
index 6d6d803..5365b46 100755 (executable)
@@ -70,7 +70,7 @@ App.IndexController = Ember.Controller.extend({
 
         var dashboard = null;
         if (grid) {
-            dashboard = App.Dashboard.create({serialized: grid});
+            dashboard = this.store.createRecord('dashboard', {serialized: grid});
             if (!dashboard.get('headerColumns').length)
                 dashboard = null;
         }