Skip to content

Commit

Permalink
accidentally checked in forcing no prop descriptors, check hasPropert…
Browse files Browse the repository at this point in the history
…yAccessors and force MANDATORY_SETTER to false if not supported
  • Loading branch information
krisselden committed Jul 10, 2012
1 parent 3277069 commit 23e9801
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/ember-metal/lib/platform.js
Expand Up @@ -138,7 +138,7 @@ platform.defineProperty = defineProperty;
@memberOf Ember.platform
@name hasPropertyAccessors
*/
platform.hasPropertyAccessors = false;
platform.hasPropertyAccessors = true;

if (!platform.defineProperty) {
platform.hasPropertyAccessors = false;
Expand All @@ -149,3 +149,7 @@ if (!platform.defineProperty) {

platform.defineProperty.isSimulated = true;
}

if (Ember.ENV.MANDATORY_SETTER && !platform.hasPropertyAccessors) {
Ember.ENV.MANDATORY_SETTER = false;
}

0 comments on commit 23e9801

Please sign in to comment.