~bjornt/lazr-js/prefetch-yui-3.5

« back to all changes in this revision

Viewing changes to src-js/lazrjs/overlay/overlay.js

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-01-14 23:32:29 UTC
  • mfrom: (197.1.7 yui-3.3.0)
  • Revision ID: launchpad@pqm.canonical.com-20110114233229-r6i4cazdiiw18o7p
Upgrade to YUI 3.3.0 [r=mars]

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
            var self = this;
218
218
            var visible = this.get('visible');
219
219
            if (visible) {
220
 
                Y.get('body').appendChild(this._blocking_div);
 
220
                Y.one('body').appendChild(this._blocking_div);
221
221
                // Handle Escape (code 27) on keydown.
222
222
                this._doc_kp_handler = Y.on('key', function() {
223
223
                        self.fire(CANCEL);
234
234
         */
235
235
        _removeBlockingDiv: function() {
236
236
            if (this._blocking_div) {
237
 
                var blocking_div = Y.get(this._blocking_div);
 
237
                var blocking_div = Y.one(this._blocking_div);
238
238
                if (blocking_div) {
239
239
                    var parent = blocking_div.get('parentNode');
240
240
                    if (parent) {