Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
AUI-1201 - Build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Mak committed Apr 29, 2014
1 parent 00084cd commit caddf16
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions build/aui-video/aui-video-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ var Video = A.Component.create(
fixedAttributes: {
value: {}
},
flashPlayerVersion: {
validator: Lang.isString,
value: '9,0,0,0'
},
flashVars: {
value: {}
},
Expand Down Expand Up @@ -108,7 +112,9 @@ var Video = A.Component.create(
var tplObj = '<object id="' + instance._swfId + '" ';

if (UA.ie) {
tplObj += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
tplObj += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ' +
'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' +
instance.get('flashPlayerVersion') + '" ';
}
else {
tplObj += 'type="application/x-shockwave-flash" data="' + swfUrl + '" ';
Expand Down Expand Up @@ -265,4 +271,4 @@ var Video = A.Component.create(

A.Video = Video;

}, '@VERSION@' ,{skinnable:true, requires:['aui-base','querystring-stringify-simple']});
}, '@VERSION@' ,${component.details.hash});
10 changes: 8 additions & 2 deletions build/aui-video/aui-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ var Video = A.Component.create(
fixedAttributes: {
value: {}
},
flashPlayerVersion: {
validator: Lang.isString,
value: '9,0,0,0'
},
flashVars: {
value: {}
},
Expand Down Expand Up @@ -108,7 +112,9 @@ var Video = A.Component.create(
var tplObj = '<object id="' + instance._swfId + '" ';

if (UA.ie) {
tplObj += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
tplObj += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ' +
'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' +
instance.get('flashPlayerVersion') + '" ';
}
else {
tplObj += 'type="application/x-shockwave-flash" data="' + swfUrl + '" ';
Expand Down Expand Up @@ -265,4 +271,4 @@ var Video = A.Component.create(

A.Video = Video;

}, '@VERSION@' ,{skinnable:true, requires:['aui-base','querystring-stringify-simple']});
}, '@VERSION@' ,${component.details.hash});

0 comments on commit caddf16

Please sign in to comment.