Skip to content

Commit

Permalink
Merge branch 'dev-master' into dev-3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
okuryu committed Aug 18, 2014
2 parents a15fb3a + b53e5b1 commit b8a495e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/pluginhost-base/pluginhost-base-coverage.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions build/pluginhost-base/pluginhost-base-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,18 @@ YUI.add('pluginhost-base', function (Y, NAME) {
if (this[ns].setAttrs) {
this[ns].setAttrs(config);
}
else { Y.log("Attempt to replug an already attached plugin, and we can't setAttrs, because it's not Attribute based: " + ns); }
else {
Y.log("Attempt to replug an already attached plugin, and we can't setAttrs, because it's not Attribute based: " + ns, "warn", "PluginHost");
}
} else {
// Create new instance
this[ns] = new Plugin(config);
this._plugins[ns] = Plugin;
}
}
else { Y.log("Attempt to plug in an invalid plugin. Host:" + this + ", Plugin:" + Plugin); }
else {
Y.log("Attempt to plug in an invalid plugin. Host:" + this + ", Plugin:" + Plugin, "error", "PluginHost");
}
}
return this;
},
Expand Down
4 changes: 4 additions & 0 deletions build/pluginhost-base/pluginhost-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,16 @@ YUI.add('pluginhost-base', function (Y, NAME) {
if (this[ns].setAttrs) {
this[ns].setAttrs(config);
}
else {
}
} else {
// Create new instance
this[ns] = new Plugin(config);
this._plugins[ns] = Plugin;
}
}
else {
}
}
return this;
},
Expand Down
4 changes: 3 additions & 1 deletion src/pluginhost/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Plugin Host Change History
@VERSION@
------

* No changes.
* [#1944][]: Fix an issue calls to `Y.log` in PluginHost are missing filter information. (@tribis)

[#1944]: https://github.com/yui/yui3/pull/1944

3.17.2
------
Expand Down
8 changes: 6 additions & 2 deletions src/pluginhost/js/PluginHost.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,18 @@
if (this[ns].setAttrs) {
this[ns].setAttrs(config);
}
else { Y.log("Attempt to replug an already attached plugin, and we can't setAttrs, because it's not Attribute based: " + ns); }
else {
Y.log("Attempt to replug an already attached plugin, and we can't setAttrs, because it's not Attribute based: " + ns, "warn", "PluginHost");
}
} else {
// Create new instance
this[ns] = new Plugin(config);
this._plugins[ns] = Plugin;
}
}
else { Y.log("Attempt to plug in an invalid plugin. Host:" + this + ", Plugin:" + Plugin); }
else {
Y.log("Attempt to plug in an invalid plugin. Host:" + this + ", Plugin:" + Plugin, "error", "PluginHost");
}
}
return this;
},
Expand Down

0 comments on commit b8a495e

Please sign in to comment.