Skip to content

Commit

Permalink
classes/{Column,Row,Table}: polyfill __proto__ with fixProto
Browse files Browse the repository at this point in the history
  • Loading branch information
buschtoens committed Jun 22, 2017
1 parent 877d331 commit 6df9e5a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon/classes/Column.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Ember from 'ember';
import fixProto from 'ember-light-table/utils/fix-proto';

const {
guidFor,
Expand Down Expand Up @@ -344,3 +345,6 @@ export default class Column extends EmberObject.extend({
this.set('subColumns', subColumns);
}
}

// https://github.com/offirgolan/ember-light-table/issues/436#issuecomment-310138868
fixProto(Column);
4 changes: 4 additions & 0 deletions addon/classes/Row.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Ember from 'ember';
import fixProto from 'ember-light-table/utils/fix-proto';

const {
computed,
Expand Down Expand Up @@ -100,3 +101,6 @@ export default class Row extends ObjectProxy.extend({
this.set('content', content);
}
}

// https://github.com/offirgolan/ember-light-table/issues/436#issuecomment-310138868
fixProto(Row);
4 changes: 4 additions & 0 deletions addon/classes/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Row from 'ember-light-table/classes/Row';
import Column from 'ember-light-table/classes/Column';
import SyncArrayProxy from 'ember-light-table/-private/sync-array-proxy';
import { mergeOptionsWithGlobals } from 'ember-light-table/-private/global-options';
import fixProto from 'ember-light-table/utils/fix-proto';

const {
get,
Expand Down Expand Up @@ -425,3 +426,6 @@ export default class Table extends EmberObject.extend({
return columns.map((c) => Table.createColumn(c));
}
}

// https://github.com/offirgolan/ember-light-table/issues/436#issuecomment-310138868
fixProto(Table);

0 comments on commit 6df9e5a

Please sign in to comment.