FIX: Unloading categories page failed in some circumstances; update to latest Ember.
This commit is contained in:
parent
bfe3d1ec87
commit
965a0a91a2
|
@ -8,7 +8,7 @@
|
||||||
**/
|
**/
|
||||||
Discourse.ListCategoriesRoute = Discourse.Route.extend({
|
Discourse.ListCategoriesRoute = Discourse.Route.extend({
|
||||||
|
|
||||||
template: function(){
|
template: function() {
|
||||||
return Discourse.SiteSettings.enable_wide_category_list ? 'listWideCategories' : 'listCategories';
|
return Discourse.SiteSettings.enable_wide_category_list ? 'listWideCategories' : 'listCategories';
|
||||||
}.property(),
|
}.property(),
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ Discourse.ListCategoriesRoute = Discourse.Route.extend({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
enter: function() {
|
activate: function() {
|
||||||
this.controllerFor('list').setProperties({
|
this.controllerFor('list').setProperties({
|
||||||
filterMode: 'categories',
|
filterMode: 'categories',
|
||||||
category: null
|
category: null
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{#collection contentBinding="model.categories"}}
|
{{#each model.categories}}
|
||||||
<tr data-category_id='{{unbound id}}'>
|
<tr data-category_id='{{unbound id}}'>
|
||||||
<td class='category'>
|
<td class='category'>
|
||||||
{{#if controller.ordering}}
|
{{#if controller.ordering}}
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
</td>
|
</td>
|
||||||
{{/with}}
|
{{/with}}
|
||||||
</tr>
|
</tr>
|
||||||
{{/collection}}
|
{{/each}}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Version: 1.1.2
|
// Version: 1.1.3+pre.5a35fc76
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
/*global __fail__*/
|
/*global __fail__*/
|
||||||
|
@ -174,7 +174,7 @@ if (!Ember.testing) {
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// Version: 1.1.2
|
// Version: 1.1.3+pre.5a35fc76
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var define, requireModule;
|
var define, requireModule;
|
||||||
|
@ -239,7 +239,7 @@ var define, requireModule;
|
||||||
|
|
||||||
@class Ember
|
@class Ember
|
||||||
@static
|
@static
|
||||||
@version 1.1.2
|
@version 1.1.3+pre.5a35fc76
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ('undefined' === typeof Ember) {
|
if ('undefined' === typeof Ember) {
|
||||||
|
@ -266,10 +266,10 @@ Ember.toString = function() { return "Ember"; };
|
||||||
/**
|
/**
|
||||||
@property VERSION
|
@property VERSION
|
||||||
@type String
|
@type String
|
||||||
@default '1.1.2'
|
@default '1.1.3+pre.5a35fc76'
|
||||||
@final
|
@final
|
||||||
*/
|
*/
|
||||||
Ember.VERSION = '1.1.2';
|
Ember.VERSION = '1.1.3+pre.5a35fc76';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Standard environmental variables. You can define these in a global `ENV`
|
Standard environmental variables. You can define these in a global `ENV`
|
||||||
|
@ -15587,7 +15587,6 @@ CoreObject.PrototypeMixin = Mixin.create({
|
||||||
```javascript
|
```javascript
|
||||||
App.Person = Ember.Object.extend({
|
App.Person = Ember.Object.extend({
|
||||||
init: function() {
|
init: function() {
|
||||||
this._super();
|
|
||||||
alert('Name is ' + this.get('name'));
|
alert('Name is ' + this.get('name'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -20317,9 +20316,8 @@ Ember.View = Ember.CoreView.extend(
|
||||||
/**
|
/**
|
||||||
The name of the template to lookup if no template is provided.
|
The name of the template to lookup if no template is provided.
|
||||||
|
|
||||||
`Ember.View` will look for a template with this name in this view's
|
By default `Ember.View` will lookup a template with this name in
|
||||||
`templates` object. By default, this will be a global object
|
`Ember.TEMPLATES` (a shared global object).
|
||||||
shared in `Ember.TEMPLATES`.
|
|
||||||
|
|
||||||
@property templateName
|
@property templateName
|
||||||
@type String
|
@type String
|
||||||
|
@ -20330,9 +20328,8 @@ Ember.View = Ember.CoreView.extend(
|
||||||
/**
|
/**
|
||||||
The name of the layout to lookup if no layout is provided.
|
The name of the layout to lookup if no layout is provided.
|
||||||
|
|
||||||
`Ember.View` will look for a template with this name in this view's
|
By default `Ember.View` will lookup a template with this name in
|
||||||
`templates` object. By default, this will be a global object
|
`Ember.TEMPLATES` (a shared global object).
|
||||||
shared in `Ember.TEMPLATES`.
|
|
||||||
|
|
||||||
@property layoutName
|
@property layoutName
|
||||||
@type String
|
@type String
|
||||||
|
@ -20340,15 +20337,6 @@ Ember.View = Ember.CoreView.extend(
|
||||||
*/
|
*/
|
||||||
layoutName: null,
|
layoutName: null,
|
||||||
|
|
||||||
/**
|
|
||||||
The hash in which to look for `templateName`.
|
|
||||||
|
|
||||||
@property templates
|
|
||||||
@type Ember.Object
|
|
||||||
@default Ember.TEMPLATES
|
|
||||||
*/
|
|
||||||
templates: Ember.TEMPLATES,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The template used to render the view. This should be a function that
|
The template used to render the view. This should be a function that
|
||||||
accepts an optional context parameter and returns a string of HTML that
|
accepts an optional context parameter and returns a string of HTML that
|
||||||
|
@ -23958,8 +23946,8 @@ if (!Handlebars && typeof require === 'function') {
|
||||||
Handlebars = require('handlebars');
|
Handlebars = require('handlebars');
|
||||||
}
|
}
|
||||||
|
|
||||||
Ember.assert("Ember Handlebars requires Handlebars version 1.0.0. Include a SCRIPT tag in the HTML HEAD linking to the Handlebars file before you link to Ember.", Handlebars);
|
Ember.assert("Ember Handlebars requires Handlebars version 1.0 or 1.1. Include a SCRIPT tag in the HTML HEAD linking to the Handlebars file before you link to Ember.", Handlebars);
|
||||||
Ember.assert("Ember Handlebars requires Handlebars version 1.0.0, COMPILER_REVISION expected: 4, got: " + Handlebars.COMPILER_REVISION + " - Please note: Builds of master may have other COMPILER_REVISION values.", Handlebars.COMPILER_REVISION === 4);
|
Ember.assert("Ember Handlebars requires Handlebars version 1.0 or 1.1, COMPILER_REVISION expected: 4, got: " + Handlebars.COMPILER_REVISION + " - Please note: Builds of master may have other COMPILER_REVISION values.", Handlebars.COMPILER_REVISION === 4);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Prepares the Handlebars templating library for use inside Ember's view
|
Prepares the Handlebars templating library for use inside Ember's view
|
||||||
|
@ -31238,8 +31226,8 @@ Ember.Route = Ember.Object.extend(Ember.ActionHandler, {
|
||||||
deactivate: Ember.K,
|
deactivate: Ember.K,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This hook is executed when the router enters the route for the first time.
|
This hook is executed when the router enters the route. It is not executed
|
||||||
It is not executed when the model for the route changes.
|
when the model for the route changes.
|
||||||
|
|
||||||
@method activate
|
@method activate
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -61,7 +61,7 @@ var define, requireModule;
|
||||||
|
|
||||||
@class Ember
|
@class Ember
|
||||||
@static
|
@static
|
||||||
@version 1.1.2
|
@version 1.1.3+pre.5a35fc76
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ('undefined' === typeof Ember) {
|
if ('undefined' === typeof Ember) {
|
||||||
|
@ -88,10 +88,10 @@ Ember.toString = function() { return "Ember"; };
|
||||||
/**
|
/**
|
||||||
@property VERSION
|
@property VERSION
|
||||||
@type String
|
@type String
|
||||||
@default '1.1.2'
|
@default '1.1.3+pre.5a35fc76'
|
||||||
@final
|
@final
|
||||||
*/
|
*/
|
||||||
Ember.VERSION = '1.1.2';
|
Ember.VERSION = '1.1.3+pre.5a35fc76';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Standard environmental variables. You can define these in a global `ENV`
|
Standard environmental variables. You can define these in a global `ENV`
|
||||||
|
@ -15401,7 +15401,6 @@ CoreObject.PrototypeMixin = Mixin.create({
|
||||||
```javascript
|
```javascript
|
||||||
App.Person = Ember.Object.extend({
|
App.Person = Ember.Object.extend({
|
||||||
init: function() {
|
init: function() {
|
||||||
this._super();
|
|
||||||
alert('Name is ' + this.get('name'));
|
alert('Name is ' + this.get('name'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -20124,9 +20123,8 @@ Ember.View = Ember.CoreView.extend(
|
||||||
/**
|
/**
|
||||||
The name of the template to lookup if no template is provided.
|
The name of the template to lookup if no template is provided.
|
||||||
|
|
||||||
`Ember.View` will look for a template with this name in this view's
|
By default `Ember.View` will lookup a template with this name in
|
||||||
`templates` object. By default, this will be a global object
|
`Ember.TEMPLATES` (a shared global object).
|
||||||
shared in `Ember.TEMPLATES`.
|
|
||||||
|
|
||||||
@property templateName
|
@property templateName
|
||||||
@type String
|
@type String
|
||||||
|
@ -20137,9 +20135,8 @@ Ember.View = Ember.CoreView.extend(
|
||||||
/**
|
/**
|
||||||
The name of the layout to lookup if no layout is provided.
|
The name of the layout to lookup if no layout is provided.
|
||||||
|
|
||||||
`Ember.View` will look for a template with this name in this view's
|
By default `Ember.View` will lookup a template with this name in
|
||||||
`templates` object. By default, this will be a global object
|
`Ember.TEMPLATES` (a shared global object).
|
||||||
shared in `Ember.TEMPLATES`.
|
|
||||||
|
|
||||||
@property layoutName
|
@property layoutName
|
||||||
@type String
|
@type String
|
||||||
|
@ -20147,15 +20144,6 @@ Ember.View = Ember.CoreView.extend(
|
||||||
*/
|
*/
|
||||||
layoutName: null,
|
layoutName: null,
|
||||||
|
|
||||||
/**
|
|
||||||
The hash in which to look for `templateName`.
|
|
||||||
|
|
||||||
@property templates
|
|
||||||
@type Ember.Object
|
|
||||||
@default Ember.TEMPLATES
|
|
||||||
*/
|
|
||||||
templates: Ember.TEMPLATES,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The template used to render the view. This should be a function that
|
The template used to render the view. This should be a function that
|
||||||
accepts an optional context parameter and returns a string of HTML that
|
accepts an optional context parameter and returns a string of HTML that
|
||||||
|
@ -31024,8 +31012,8 @@ Ember.Route = Ember.Object.extend(Ember.ActionHandler, {
|
||||||
deactivate: Ember.K,
|
deactivate: Ember.K,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This hook is executed when the router enters the route for the first time.
|
This hook is executed when the router enters the route. It is not executed
|
||||||
It is not executed when the model for the route changes.
|
when the model for the route changes.
|
||||||
|
|
||||||
@method activate
|
@method activate
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue