Comparing version 1.0.2 to 1.0.3
@@ -0,0 +0,0 @@ var WM = typeof WM !== 'undefined' ? WeakMap : require('weak-map'), |
25
gedi.js
@@ -114,13 +114,16 @@ //Copyright (C) 2012 Kory Nunn | ||
gel.scope.isDirty = function(scope, args){ | ||
var token = args.raw()[0]; | ||
var token = args.getRaw(0, true), | ||
path = (token instanceof PathToken) ? token.original : token.sourcePathInfo && token.sourcePathInfo.path; | ||
return isDirty(paths.resolve(scope.get('_gmc_'), (token instanceof PathToken) ? token.original : paths.create())); | ||
if(!path){ | ||
return false; | ||
} | ||
return isDirty(paths.resolve(scope.get('_gmc_'), path)); | ||
}; | ||
gel.scope.getAllDirty = function (scope, args) { | ||
var token = args.raw()[0], | ||
path = paths.resolve(scope.get('_gmc_'), (token instanceof PathToken) && token.original), | ||
source = get(path, model), | ||
result, | ||
itemPath; | ||
var token = args.getRaw(0, true), | ||
source = token.result, | ||
path = (token instanceof PathToken) ? token.original : token.sourcePathInfo && token.sourcePathInfo.path; | ||
@@ -133,2 +136,10 @@ if (source == null) { | ||
if(!path){ | ||
return result; | ||
} | ||
var resolvedPath = paths.resolve(scope.get('_gmc_'), path), | ||
result, | ||
itemPath; | ||
for (var key in source) { | ||
@@ -135,0 +146,0 @@ if (source.hasOwnProperty(key)) { |
@@ -0,0 +0,0 @@ var paths = require('gedi-paths'), |
@@ -5,3 +5,3 @@ { | ||
"author": "Kory Nunn <knunn187@gmail.com>", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "gedi.js", | ||
@@ -8,0 +8,0 @@ "dependencies": { |
@@ -0,0 +0,0 @@ var Lang = require('lang-js'), |
@@ -0,0 +0,0 @@ Gedi |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
45011
920