Skip to content

Commit

Permalink
Merge pull request #599 from Orckestra/fix-Edge42
Browse files Browse the repository at this point in the history
Fix blocking issues in edge 42.
  • Loading branch information
Marcus Wendt authored Jun 28, 2018
2 parents 317f3ad + 2618653 commit 0947337
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Website/Composite/login.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="loginpage">
<ui:splash id="splash" class="splash">
<ui:decks id="decks" flex="false" class="splash-inner">
<ui:brandsnippet snippetName="logo" />
<ui:brandsnippet snippetname="logo" />
<ui:deck id="introdeck"/>
<ui:deck id="logindeck">
<ui:fields id="loginfields" >
Expand Down Expand Up @@ -77,7 +77,7 @@
<ui:deck id="shutdowndeck">
<p>Shutting down...</p>
</ui:deck>
<ui:brandsnippet snippetName="company-logo" />
<ui:brandsnippet snippetname="company-logo" />
</ui:decks>
</ui:splash>
</div>
25 changes: 12 additions & 13 deletions Website/Composite/scripts/source/top/ui/bindings/Binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -941,8 +941,7 @@ Binding.prototype.subTreeFromString = function ( markup ) {
*/
Binding.prototype.getProperty = function ( attname ) {

// MS Edge 42 supports only lowercased attributes. It does not return attribute value for attribute name with capital letters.
var value = this.bindingElement.getAttribute ( Client.isEdge ? attname.toLowerCase() : attname );
var value = this.bindingElement.getAttribute ( attname.toLowerCase() );

if ( value ) {
value = Types.castFromString ( value );
Expand All @@ -959,7 +958,7 @@ Binding.prototype.getProperty = function ( attname ) {
* @param {string} attname The name of the attribute
* @param {object} value The attribute value.
*/
Binding.prototype.setProperty = function ( prop, value ) {
Binding.prototype.setProperty = function (attname, value ) {

if ( value != null ) {

Expand All @@ -971,20 +970,20 @@ Binding.prototype.setProperty = function ( prop, value ) {
* This will prevent recursive calls to methods which in turn
* modifies the properties of the binding.
*/
if ( String ( this.bindingElement.getAttribute ( Client.isEdge ? prop.toLowerCase() : prop )) != value ) {
if ( String ( this.bindingElement.getAttribute ( attname.toLowerCase() )) != value ) {

this.bindingElement.setAttribute ( Client.isEdge ? prop.toLowerCase() : prop, value );
this.bindingElement.setAttribute ( attname.toLowerCase(), value );
if ( this.isAttached == true ) {

/*
* Handle persistance.
*/
if ( Persistance.isEnabled && value != null ) {
if ( this._persist != null && this._persist [ prop ]) {
this._persist [ prop ] = value;
if ( this._persist != null && this._persist [ attname ]) {
this._persist [ attname ] = value;
Persistance.setPersistedProperty (
this.bindingElement.id,
prop,
attname,
value
);
}
Expand All @@ -993,24 +992,24 @@ Binding.prototype.setProperty = function ( prop, value ) {
/*
* Handle "setters" (methods invoked when setting the property).
*/
var method = this.propertyMethodMap [ prop ];
var method = this.propertyMethodMap [ attname ];
if ( method ) {
method.call ( this, this.getProperty ( prop ));
method.call ( this, this.getProperty ( attname ));
}
}
}
} else {
this.deleteProperty ( prop );
this.deleteProperty ( attname );
}
}

/**
* Remove bound element attribute.
* @param {string} prop The name of the attribute
*/
Binding.prototype.deleteProperty = function ( prop ) {
Binding.prototype.deleteProperty = function ( attname ) {

this.bindingElement.removeAttribute ( Client.isEdge ? prop.toLowerCase() : prop );
this.bindingElement.removeAttribute ( attname.toLowerCase() );
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ BrandSnippetBinding.prototype.onBindingAttach = function () {
*/
BrandSnippetBinding.prototype.getSnippetBrandedUrl = function () {

return BrandSnippetBinding.SHIPPETBRANDED_URL.replace("{0}", this.getProperty("snippetName"));
return BrandSnippetBinding.SHIPPETBRANDED_URL.replace("{0}", this.getProperty("snippetname"));
}

/**
* @return {string}
*/
BrandSnippetBinding.prototype.getSnippetUrl = function () {

return BrandSnippetBinding.SHIPPET_URL.replace("{0}", this.getProperty("snippetName"));
return BrandSnippetBinding.SHIPPET_URL.replace("{0}", this.getProperty("snippetname"));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ VisualEditorBinding.prototype.handleBroadcast = function ( broadcast, arg ) {

VisualEditorBinding.superclass.handleBroadcast.call ( this, broadcast, arg );

var windowBinding = this.getContentWindow ().bindingMap.tinywindow;
var windowBinding = this.getContentWindow().bindingMap.tinywindow;
var contentWindow = windowBinding.getContentWindow ();

switch ( broadcast ) {
Expand Down

0 comments on commit 0947337

Please sign in to comment.