Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
add simpler calling modality for job
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott J. Miles committed Mar 24, 2014
1 parent c76d2ec commit f281429
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/instance/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@

var base = {
PolymerBase: true,
job: Polymer.job,
job: function(job, callback, wait) {
if (typeof job === 'string') {
var n = '___' + job;
this[n] = Polymer.job.call(this, this[n], callback, wait);
} else {
return Polymer.job.call(this, job, callback, wait);
}
},
super: Polymer.super,
// user entry point for element has had its createdCallback called
created: function() {
Expand Down

0 comments on commit f281429

Please sign in to comment.