Skip to content

Commit

Permalink
Release v2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Prayrit Jain committed Sep 2, 2014
1 parent d601153 commit 8bc0b85
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 52 deletions.
Binary file added archive/dust-2.4.1.tar.gz
Binary file not shown.
Binary file added archive/dust-2.4.1.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "dustjs-linkedin",
"version": "2.4.0",
"version": "2.4.1",
"main": "dist/dust-full.min.js",
"devDependencies": {
"pegjs": "0.7.0"
Expand Down
34 changes: 11 additions & 23 deletions dist/dust-core.js
@@ -1,4 +1,4 @@
/*! Dust - Asynchronous Templating - v2.4.0
/*! Dust - Asynchronous Templating - v2.4.1
* http://linkedin.github.io/dustjs/
* Copyright (c) 2014 Aleksander Williams; Released under the MIT License */
(function(root) {
Expand All @@ -12,27 +12,10 @@
EMPTY_FUNC = function() {},
logger = {},
originalLog,
loggerContext,
hasOwnProperty = Object.prototype.hasOwnProperty,
getResult;
loggerContext;

dust.debugLevel = NONE;

/**
* Given an object and a key, return the value. Use this instead of obj[key] in order to:
* prevent looking up the prototype chain
* fail nicely when the object is falsy
* @param {Object} obj the object to inspect
* @param {String} key the name of the property to resolve
* @return {*} the resolved value
*/
getResult = function(obj, key) {
if (obj && hasOwnProperty.call(obj, key)) {
return obj[key];
}
};


// Try to find the console in global scope
if (root && root.console && root.console.log) {
loggerContext = root.console;
Expand Down Expand Up @@ -327,7 +310,7 @@
while (ctx) {
if (ctx.isObject) {
ctxThis = ctx.head;
value = getResult(ctx.head, first);
value = ctx.head[first];
if (value !== undefined) {
break;
}
Expand All @@ -338,16 +321,21 @@
if (value !== undefined) {
ctx = value;
} else {
ctx = getResult(this.global, first);
ctx = this.global ? this.global[first] : undefined;
}
} else if (ctx) {
// if scope is limited by a leading dot, don't search up the tree
ctx = getResult(ctx.head, first);
if(ctx.head) {
ctx = ctx.head[first];
} else {
//context's head is empty, value we are searching for is not defined
ctx = undefined;
}
}

while (ctx && i < len) {
ctxThis = ctx;
ctx = getResult(ctx, down[i]);
ctx = ctx[down[i]];
i++;
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/dust-core.min.js

Large diffs are not rendered by default.

34 changes: 11 additions & 23 deletions dist/dust-full.js
@@ -1,4 +1,4 @@
/*! Dust - Asynchronous Templating - v2.4.0
/*! Dust - Asynchronous Templating - v2.4.1
* http://linkedin.github.io/dustjs/
* Copyright (c) 2014 Aleksander Williams; Released under the MIT License */
(function(root) {
Expand All @@ -12,27 +12,10 @@
EMPTY_FUNC = function() {},
logger = {},
originalLog,
loggerContext,
hasOwnProperty = Object.prototype.hasOwnProperty,
getResult;
loggerContext;

dust.debugLevel = NONE;

/**
* Given an object and a key, return the value. Use this instead of obj[key] in order to:
* prevent looking up the prototype chain
* fail nicely when the object is falsy
* @param {Object} obj the object to inspect
* @param {String} key the name of the property to resolve
* @return {*} the resolved value
*/
getResult = function(obj, key) {
if (obj && hasOwnProperty.call(obj, key)) {
return obj[key];
}
};


// Try to find the console in global scope
if (root && root.console && root.console.log) {
loggerContext = root.console;
Expand Down Expand Up @@ -327,7 +310,7 @@
while (ctx) {
if (ctx.isObject) {
ctxThis = ctx.head;
value = getResult(ctx.head, first);
value = ctx.head[first];
if (value !== undefined) {
break;
}
Expand All @@ -338,16 +321,21 @@
if (value !== undefined) {
ctx = value;
} else {
ctx = getResult(this.global, first);
ctx = this.global ? this.global[first] : undefined;
}
} else if (ctx) {
// if scope is limited by a leading dot, don't search up the tree
ctx = getResult(ctx.head, first);
if(ctx.head) {
ctx = ctx.head[first];
} else {
//context's head is empty, value we are searching for is not defined
ctx = undefined;
}
}

while (ctx && i < len) {
ctxThis = ctx;
ctx = getResult(ctx, down[i]);
ctx = ctx[down[i]];
i++;
}
}
Expand Down
4 changes: 2 additions & 2 deletions dist/dust-full.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "dustjs-linkedin",
"title": "Dust - Asynchronous Templating",
"version": "2.4.0",
"version": "2.4.1",
"author": {
"name": "Aleksander Williams",
"url": "http://akdubya.github.com/dustjs"
Expand Down

0 comments on commit 8bc0b85

Please sign in to comment.