This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
271 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,14 @@ function applyImageMethods(constructor) { | |
// Call with an argument to set the image and return self, call with no | ||
// argument to get image value. | ||
// | ||
// passbook.icon(function(callback) { ... }; | ||
// console.log(passbook.icon()); | ||
// pass.icon(function(callback) { ... }; | ||
// console.log(pass.icon()); | ||
// | ||
// The 2x suffix is used for high resolution version (file name uses @2x | ||
// suffix). | ||
// | ||
// passbook.icon2x("[email protected]"); | ||
// console.log(passbook.icon2x()); | ||
// pass.icon2x("[email protected]"); | ||
// console.log(pass.icon2x()); | ||
IMAGES.forEach(function(key) { | ||
prototype[key] = function(value) { | ||
if (arguments.length === 0) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
// Exports function for creating a new template, from which you can create new | ||
// passbooks. | ||
// passes. | ||
|
||
var Template = require("./template"); | ||
|
||
|
||
// Create a new template. | ||
// | ||
// style - Passbook style (coupon, eventTicket, etc) | ||
// fields - Passbook fields (passTypeIdentifier, teamIdentifier, etc) | ||
// style - Pass style (coupon, eventTicket, etc) | ||
// fields - Pass fields (passTypeIdentifier, teamIdentifier, etc) | ||
function createTemplate(style, fields) { | ||
return new Template(style, fields); | ||
} | ||
|
||
module.exports = createTemplate; | ||
|
Oops, something went wrong.