Revert Function option is not working


Hello. The revert option is not working as expected,

My ember Code is:

        name: "AdminUser",
        icon: 'admin',
        logical: function () {
            return Admin.Role.detectInstance(this.get('model'));
        titleView: Core.view.Message.extend()
                tagName: 'h2',
                key: 'admin/role-inspect/details/title'
        bodyView: Admin.RoleDetailsView.extend()
                roleModelBinding: 'inspector.model',
                readOnly: function () {
                    return !this.get('roleModel.canModify');
                hasChangesChanged: function () {
                    if (!Admin.RoleInspect.Inspector.detectInstance(this.get('inspector'))) { return; }
                    this.get('inspector').set('hasChanges', this.get('hasChanges'));
                roleModelCopyChanged: function () {
                    this.set('inspector.roleModelCopy', this.get('roleModelCopy'));
        actionsView: Inspect.EditableModelFooter,
        save: function () {
            var model = this.get('model'),
                copy = this.get('roleModelCopy'),
                payload = [];
           var roleName =;
           var roleDescription = model.description;
                type: 'put',
                json: true,
                service: 'admin/roles',
                data: {
                    name: roleName,
                    description: roleDescription
            }).done(function (result) {
                    title: 'Success',
                    message: 'Role Details Updated' 
                this.set('model', result);
                this.set('hasChanges', false);
            }.bind(this)).fail(function (xhr, status, reason) {
                reject(reason || status);
            }).always(function () {
            }).fail(function (xhr, status, reason) {
       || status);
        canSave: function () {
            return this.get('canModify') && this.get('hasChanges');
        }.property('canModify', 'hasChanges'),
        canRevert: function () {
            return this.get('canSave');
        revert: function () {
            var view = this.get('bodyViewInstance') || this;
            view.set('roleModelCopy', null);

        tooltipBinding: 'Core.messageTable.admin/user-inspect/roles/title',
        actionsView: Ember.ContainerView.extend({
            createChildView: function (View, ext) {
                ext = ext || {};
                ext.inspector = this.get('inspector');
                return this._super(View, ext);
            childViews: [

                    labelBinding: 'Core.messageTable.admin/user-inspect/roles/save',
                    titleBinding: 'Core.messageTable.admin/user-inspect/roles/save',
                    click: function () {
                        return false;

                    labelBinding: 'Core.messageTable.admin/user-inspect/roles/revert',
                    titleBinding: 'Core.messageTable.admin/user-inspect/roles/revert',
                    click: function () {
                        return false;


        canModify: function () {
            return !!this.get('model.canModify');


In my ember file, the save option is working fine. But the revert option not working as expect in my side. I need to revert the saved text and misspelling text while doing this operation. I’m new to the ember. I’m using ember-1.4.0. Your help will be appreciate. Thanks in advance.


@Boo if you are new to Ember is there any reason you are using ember 1.4.0? Is this a legacy app you are maintaining perhaps? The problem is that ember 1.4.0 is REALLY old, in fact the published Ember docs only go back to 1.13. It might be pretty difficult to get help on an Ember version that out of date because so much has changed since then.

EDIT: I personally started on Ember 1.11 and I’ll take another look at the above code but upon my initial glance I didn’t have any thoughts on how you might fix it. It’s pretty unfamiliar to me.