From d09d50d38cbd4afd0face9fcf944a7cbf2565ac6 Mon Sep 17 00:00:00 2001 From: Karl Guillotte Date: Wed, 15 May 2013 21:19:29 -0700 Subject: [PATCH] Rename none/empty to isNone/isEmpty variables Rename none ti isNone and empty to isEmpty variables. It makes the code easier to read. --- packages/ember-data/lib/transforms/json_transforms.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/ember-data/lib/transforms/json_transforms.js b/packages/ember-data/lib/transforms/json_transforms.js index 1d94cd4e47c..25ed03e2307 100644 --- a/packages/ember-data/lib/transforms/json_transforms.js +++ b/packages/ember-data/lib/transforms/json_transforms.js @@ -1,4 +1,4 @@ -var none = Ember.isNone, empty = Ember.isEmpty; +var isNone = Ember.isNone, isEmpty = Ember.isEmpty; /** @module data @@ -15,21 +15,21 @@ var none = Ember.isNone, empty = Ember.isEmpty; DS.JSONTransforms = { string: { deserialize: function(serialized) { - return none(serialized) ? null : String(serialized); + return isNone(serialized) ? null : String(serialized); }, serialize: function(deserialized) { - return none(deserialized) ? null : String(deserialized); + return isNone(deserialized) ? null : String(deserialized); } }, number: { deserialize: function(serialized) { - return empty(serialized) ? null : Number(serialized); + return isEmpty(serialized) ? null : Number(serialized); }, serialize: function(deserialized) { - return empty(deserialized) ? null : Number(deserialized); + return isEmpty(deserialized) ? null : Number(deserialized); } },