[Pkg-javascript-commits] [dojo] 07/27: Add missing host-node and host-rhino rules to has.js

David Prévot taffit at moszumanska.debian.org
Sun Sep 14 16:23:05 UTC 2014


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

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

commit adaa898a576552510eb3cfa7f7d3c601cfe1c822
Author: Colin Snover <github.com at zetafleet.com>
Date:   Tue Feb 18 04:14:09 2014 +0000

    Add missing host-node and host-rhino rules to has.js
    
    Fixes #17741.
    
    (cherry picked from commit ce4704766da86485459d9b16514fe7d2e48a6bda)
    (cherry picked from commit fd52c9617a7191983427172335f71b2211db383e)
    (cherry picked from commit d4c0bbf60e25fe9dfd05668260f8225042b6856f)
---
 has.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/has.js b/has.js
index d219ff0..518ce77 100644
--- a/has.js
+++ b/has.js
@@ -97,6 +97,8 @@ define(["require"], function(require) {
 		// has as it would have otherwise been initialized by the dojo loader; use has.add to the builder
 		// can optimize these away iff desired
 		has.add("host-browser", isBrowser);
+		has.add("host-node", (typeof process == "object" && process.versions && process.versions.node && process.versions.v8));
+		has.add("host-rhino", (typeof load == "function" && (typeof Packages == "function" || typeof Packages == "object")));
 		has.add("dom", isBrowser);
 		has.add("dojo-dom-ready-api", 1);
 		has.add("dojo-sniff", 1);

-- 
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