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

« back to all changes in this revision

Viewing changes to src-js/lazrjs/yui/attribute/attribute-base-debug.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:
2
2
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
3
Code licensed under the BSD License:
4
4
http://developer.yahoo.com/yui/license.html
5
 
version: 3.2.0
6
 
build: 2676
 
5
version: 3.3.0
 
6
build: 3167
7
7
*/
8
8
YUI.add('attribute-base', function(Y) {
9
9
 
227
227
        host._requireAddAttr = host._requireAddAttr || false;
228
228
 
229
229
        // ATTRS support for Node, which is not Base based
230
 
        if ( attrs && !(Base && host instanceof Base)) {
 
230
        if ( attrs && !(Base && Y.instanceOf(host, Base))) {
231
231
            host.addAttrs(this._protectAttrs(attrs));
232
232
        }
233
233
    }
767
767
 
768
768
            facade = (opts) ? Y.merge(opts) : host._ATTR_E_FACADE;
769
769
 
770
 
            facade.type = eventName;
 
770
            // Not using the single object signature for fire({type:..., newVal:...}), since 
 
771
            // we don't want to override type. Changed to the fire(type, {newVal:...}) signature.
 
772
 
 
773
            // facade.type = eventName;
771
774
            facade.attrName = attrName;
772
775
            facade.subAttrName = subAttrName;
773
776
            facade.prevVal = currVal;
774
777
            facade.newVal = newVal;
775
778
 
776
 
            host.fire(facade);
 
779
            // host.fire(facade);
 
780
            host.fire(eventName, facade);
777
781
        },
778
782
 
779
783
        /**
1175
1179
    Y.Attribute = Attribute;
1176
1180
 
1177
1181
 
1178
 
}, '3.2.0' ,{requires:['event-custom']});
 
1182
}, '3.3.0' ,{requires:['event-custom']});