Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- import DS from 'ember-data';
- const DemoMixin = Ember.Mixin.create({
- headersForRequest:function(){
- if (this._super.name === 'updateRecord') {
- alert('_super points to wrong function!');
- } else {
- alert('OK');
- }
- this._super(...arguments);
- },
- });
- export default DS.RESTAdapter.extend(DemoMixin, {
- updateRecord: function(store, type, snapshot) {
- const headers = this.headersForRequest();
- //return this._super();;
- },
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement