MDL-32843 import YUI 3.5.1
[moodle.git] / lib / yui / 3.5.1 / build / view-node-map / view-node-map-min.js
blob8c21a562c416d425ced898a1d63246bbe2a5fa01
1 /*
2 YUI 3.5.1 (build 22)
3 Copyright 2012 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
6 */
7 YUI.add("view-node-map",function(d){var c=d.namespace("View._buildCfg"),b={};function a(){}c.aggregates||(c.aggregates=[]);c.aggregates.push("getByNode");a.getByNode=function(f){var e;d.one(f).ancestor(function(g){return(e=b[d.stamp(g,true)])||false;},true);return e||null;};a._instances=b;a.prototype={initializer:function(){b[d.stamp(this.get("container"))]=this;},destructor:function(){var e=d.stamp(this.get("container"),true);if(e in b){delete b[e];}}};d.View.NodeMap=a;},"3.5.1",{requires:["view"]});