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

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:49 UTC 2014


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

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

commit d4c0bbf60e25fe9dfd05668260f8225042b6856f
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)
---
 has.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/has.js b/has.js
index dd765d3..f82a369 100644
--- a/has.js
+++ b/has.js
@@ -90,6 +90,8 @@ define(["require", "module"], function(require, module){
 		// 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