[Pkg-javascript-commits] [dojo] 08/58: Make sure lang.getObject() returns 3rd arg if 1st arg is empty, fixes #18542.

David Prévot taffit at moszumanska.debian.org
Thu Mar 24 04:28:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.10.5
in repository dojo.

commit 05e25e2c6880a65fcc674fa5b22e7339085e7376
Author: Akira Sudoh <asudoh at gmail.com>
Date:   Tue Mar 31 23:08:48 2015 +0900

    Make sure lang.getObject() returns 3rd arg if 1st arg is empty, fixes #18542.
    
    (cherry picked from commit 9076a957cceac3f1411f9ec1abb4eb96822810b5)
    
    Conflicts:
    	tests/unit/_base/lang.js
---
 _base/lang.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_base/lang.js b/_base/lang.js
index a14ccc0..7d851ec 100644
--- a/_base/lang.js
+++ b/_base/lang.js
@@ -216,7 +216,7 @@ define(["./kernel", "../has", "../sniff"], function(dojo, has){
 			// context: Object?
 			//		Optional. Object to use as root of path. Defaults to
 			//		'dojo.global'. Null may be passed.
-			return getProp(name ? name.split(".") : [], create, context); // Object
+			return !name ? context : getProp(name.split("."), create, context); // Object
 		},
 
 		exists: function(name, obj){

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list