//>>built
define("dojox/mobile/viewRegistry",["dojo/_base/array","dojo/dom-class","dijit/registry"],function(e,c,d){return{length:0,hash:{},initialView:null,add:function(a){this.hash[a.id]=a;this.length++},remove:function(a){this.hash[a]&&(delete this.hash[a],this.length--)},getViews:function(){var a=[],b;for(b in this.hash)a.push(this.hash[b]);return a},getParentView:function(a){for(a=a.getParent();a;a=a.getParent())if(c.contains(a.domNode,"mblView"))return a;return null},getChildViews:function(a){return e.filter(this.getViews(),
function(b){return this.getParentView(b)===a},this)},getEnclosingView:function(a){for(;a&&"BODY"!==a.tagName;a=a.parentNode)if(1===a.nodeType&&c.contains(a,"mblView"))return d.byNode(a);return null},getEnclosingScrollable:function(a){for(a=d.getEnclosingWidget(a);a;a=a.getParent())if(a.scrollableParams&&a._v)return a;return null}}});