Skip to content

Commit

Permalink
Version 0.3.3 bump + README update
Browse files Browse the repository at this point in the history
  • Loading branch information
rpdasilva committed Feb 19, 2016
1 parent dd49363 commit 234d763
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Print HTML Element v0.3.1
# Print HTML Element v0.3.3

Prints the HTML of a provided element.

Expand Down Expand Up @@ -47,7 +47,8 @@ An HTML class `pe-body` is also added to the body of the print area which can be
var opts = {
printMode: 'iframe',
pageTitle: '',
templateString: ''
templateString: '',
popupProperties: ''
};

PE.printElement( elem, opts ); // Prints a DOM Element
Expand All @@ -58,6 +59,7 @@ An HTML class `pe-body` is also added to the body of the print area which can be
- pageTitle sets the printed page title (defaults to blank)
- templateString allows you to define a template that the html will be printed within.
- Use `{{printBody}}` within the template to signify where the HTML should be injected
- popupProperties set the window features (such as `menubar`, `scrollbars`, etc. in `popup` mode


## Possible future features
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "print-html-element",
"main": "print-html-element.js",
"version": "0.3.2",
"version": "0.3.3",
"homepage": "https://github.com/rpdasilva/print-html-element",
"authors": [
"Philip Da Silva <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "print-html-element",
"version": "0.3.2",
"version": "0.3.3",
"description": "Prints the HTML of a provided element.",
"main": "print-html-element.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion print-html-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var PrintElement = function() {
printDocument,
printElementID;

if (opts.printMode.toLowerCase() == 'popup')
if (opts.printMode.toLowerCase() === 'popup')
{
printWindow = window.open('about:blank', 'printElementWindow', opts.popupProperties);
printDocument = printWindow.document;
Expand Down

0 comments on commit 234d763

Please sign in to comment.