Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed to a different map module

  • Loading branch information...
commit e1428ae34eeb5ecd5b1a8291f025442f420628bc 1 parent 687f4f1
@KoryNunn KoryNunn authored
Showing with 5 additions and 5 deletions.
  1. +3 −3 gedi.js
  2. +2 −2 package.json
View
6 gedi.js
@@ -7,7 +7,7 @@
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
var Gel = require('gel-js'),
- WeakMap = require('weakmap'),
+ HybridMap = require('hybrid-map').HybridMap,
createPathToken = require('./pathToken'),
Token = Gel.Token,
paths = require('gedi-paths'),
@@ -40,7 +40,7 @@ function newGedi(model) {
var internalBindings = [],
// Storage for tracking references within the model
- modelReferences = new WeakMap(),
+ modelReferences = new HybridMap(),
// Storage for tracking the dirty state of the model
dirtyModel = {},
@@ -97,7 +97,7 @@ function newGedi(model) {
objectReferences.splice(objectReferences.indexOf(path),1);
if(!objectReferences.length){
- modelReferences['delete'](object);
+ modelReferences.del(object);
}
for(var key in object){
View
4 package.json
@@ -6,14 +6,14 @@
"Model",
"data"
],
- "version": "0.9.4",
+ "version": "0.9.5",
"main": "gedi.js",
"dependencies": {
"gedi-paths": "0.1.x",
"gel-js": "0.5.x",
"lang-js": "0.1.x",
"spec-js": "0.0.x",
- "weakmap": "0.0.6"
+ "hybrid-map": "0.1.x"
},
"devDependencies": {
"tape": "1.0.x"
Please sign in to comment.
Something went wrong with that request. Please try again.